Monitors interface
Interface representing a Monitors.
Methods
Method Details
beginCreate(string, string, MonitorsCreateOptionalParams)
Create a monitor resource.
function beginCreate(resourceGroupName: string, monitorName: string, options?: MonitorsCreateOptionalParams): Promise<SimplePollerLike<OperationState<DatadogMonitorResource>, DatadogMonitorResource>>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- monitorName
-
string
Monitor resource name
- options
- MonitorsCreateOptionalParams
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<DatadogMonitorResource>, DatadogMonitorResource>>
beginCreateAndWait(string, string, MonitorsCreateOptionalParams)
Create a monitor resource.
function beginCreateAndWait(resourceGroupName: string, monitorName: string, options?: MonitorsCreateOptionalParams): Promise<DatadogMonitorResource>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- monitorName
-
string
Monitor resource name
- options
- MonitorsCreateOptionalParams
The options parameters.
Returns
Promise<DatadogMonitorResource>
beginDelete(string, string, MonitorsDeleteOptionalParams)
Delete a monitor resource.
function beginDelete(resourceGroupName: string, monitorName: string, options?: MonitorsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- monitorName
-
string
Monitor resource name
- options
- MonitorsDeleteOptionalParams
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteAndWait(string, string, MonitorsDeleteOptionalParams)
Delete a monitor resource.
function beginDeleteAndWait(resourceGroupName: string, monitorName: string, options?: MonitorsDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- monitorName
-
string
Monitor resource name
- options
- MonitorsDeleteOptionalParams
The options parameters.
Returns
Promise<void>
beginUpdate(string, string, MonitorsUpdateOptionalParams)
Update a monitor resource.
function beginUpdate(resourceGroupName: string, monitorName: string, options?: MonitorsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DatadogMonitorResource>, DatadogMonitorResource>>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- monitorName
-
string
Monitor resource name
- options
- MonitorsUpdateOptionalParams
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<DatadogMonitorResource>, DatadogMonitorResource>>
beginUpdateAndWait(string, string, MonitorsUpdateOptionalParams)
Update a monitor resource.
function beginUpdateAndWait(resourceGroupName: string, monitorName: string, options?: MonitorsUpdateOptionalParams): Promise<DatadogMonitorResource>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- monitorName
-
string
Monitor resource name
- options
- MonitorsUpdateOptionalParams
The options parameters.
Returns
Promise<DatadogMonitorResource>
get(string, string, MonitorsGetOptionalParams)
Get the properties of a specific monitor resource.
function get(resourceGroupName: string, monitorName: string, options?: MonitorsGetOptionalParams): Promise<DatadogMonitorResource>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- monitorName
-
string
Monitor resource name
- options
- MonitorsGetOptionalParams
The options parameters.
Returns
Promise<DatadogMonitorResource>
getDefaultKey(string, string, MonitorsGetDefaultKeyOptionalParams)
Get the default api key.
function getDefaultKey(resourceGroupName: string, monitorName: string, options?: MonitorsGetDefaultKeyOptionalParams): Promise<DatadogApiKey>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- monitorName
-
string
Monitor resource name
The options parameters.
Returns
Promise<DatadogApiKey>
list(MonitorsListOptionalParams)
List all monitors under the specified subscription.
function list(options?: MonitorsListOptionalParams): PagedAsyncIterableIterator<DatadogMonitorResource, DatadogMonitorResource[], PageSettings>
Parameters
- options
- MonitorsListOptionalParams
The options parameters.
Returns
listApiKeys(string, string, MonitorsListApiKeysOptionalParams)
List the api keys for a given monitor resource.
function listApiKeys(resourceGroupName: string, monitorName: string, options?: MonitorsListApiKeysOptionalParams): PagedAsyncIterableIterator<DatadogApiKey, DatadogApiKey[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- monitorName
-
string
Monitor resource name
The options parameters.
Returns
listByResourceGroup(string, MonitorsListByResourceGroupOptionalParams)
List all monitors under the specified resource group.
function listByResourceGroup(resourceGroupName: string, options?: MonitorsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DatadogMonitorResource, DatadogMonitorResource[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
The options parameters.
Returns
listHosts(string, string, MonitorsListHostsOptionalParams)
List the hosts for a given monitor resource.
function listHosts(resourceGroupName: string, monitorName: string, options?: MonitorsListHostsOptionalParams): PagedAsyncIterableIterator<DatadogHost, DatadogHost[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- monitorName
-
string
Monitor resource name
- options
- MonitorsListHostsOptionalParams
The options parameters.
Returns
listLinkedResources(string, string, MonitorsListLinkedResourcesOptionalParams)
List all Azure resources associated to the same Datadog organization as the target resource.
function listLinkedResources(resourceGroupName: string, monitorName: string, options?: MonitorsListLinkedResourcesOptionalParams): PagedAsyncIterableIterator<LinkedResource, LinkedResource[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- monitorName
-
string
Monitor resource name
The options parameters.
Returns
listMonitoredResources(string, string, MonitorsListMonitoredResourcesOptionalParams)
List the resources currently being monitored by the Datadog monitor resource.
function listMonitoredResources(resourceGroupName: string, monitorName: string, options?: MonitorsListMonitoredResourcesOptionalParams): PagedAsyncIterableIterator<MonitoredResource, MonitoredResource[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- monitorName
-
string
Monitor resource name
The options parameters.
Returns
refreshSetPasswordLink(string, string, MonitorsRefreshSetPasswordLinkOptionalParams)
Refresh the set password link and return a latest one.
function refreshSetPasswordLink(resourceGroupName: string, monitorName: string, options?: MonitorsRefreshSetPasswordLinkOptionalParams): Promise<DatadogSetPasswordLink>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- monitorName
-
string
Monitor resource name
The options parameters.
Returns
Promise<DatadogSetPasswordLink>
setDefaultKey(string, string, MonitorsSetDefaultKeyOptionalParams)
Set the default api key.
function setDefaultKey(resourceGroupName: string, monitorName: string, options?: MonitorsSetDefaultKeyOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- monitorName
-
string
Monitor resource name
The options parameters.
Returns
Promise<void>