Skip to main content

monitors

Creates, updates, deletes, gets or lists a monitors resource.

Overview

Namemonitors
TypeResource
Idazure_isv.datadog.monitors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringARM id of the monitor resource.
namestringName of the monitor resource.
datadogOrganizationPropertiesobjectSpecify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well.
identityobject:vartype identity: ~azure.mgmt.datadog.models.IdentityProperties
liftrResourceCategorystringKnown values are: "Unknown" and "MonitorLogs".
liftrResourcePreferenceintegerThe priority of the resource.
locationstringRequired.
marketplaceSubscriptionStatusstringFlag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. Known values are: "Provisioning", "Active", "Suspended", and "Unsubscribed".
monitoringStatusstringFlag specifying if the resource monitoring is enabled or disabled. Known values are: "Enabled" and "Disabled".
provisioningStatestringKnown values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified".
skuobject:vartype sku: ~azure.mgmt.datadog.models.ResourceSku
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectDictionary of .
typestringThe type of the monitor resource.
userInfoobjectIncludes name, email and optionally, phone number. User Information can't be null.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, monitor_name, subscription_idGet the properties of a specific monitor resource. Get the properties of a specific monitor resource.
list_by_resource_groupselectresource_group_name, subscription_idList all monitors under the specified resource group. List all monitors under the specified resource group.
listselectsubscription_idList all monitors under the specified subscription. List all monitors under the specified subscription.
createinsertresource_group_name, monitor_name, subscription_id, locationCreate a monitor resource. Create a monitor resource.
updateupdateresource_group_name, monitor_name, subscription_idUpdate a monitor resource. Update a monitor resource.
deletedeleteresource_group_name, monitor_name, subscription_idDelete a monitor resource. Delete a monitor resource.
list_api_keysexecresource_group_name, monitor_name, subscription_idList the api keys for a given monitor resource. List the api keys for a given monitor resource.
list_hostsexecresource_group_name, monitor_name, subscription_idList the hosts for a given monitor resource. List the hosts for a given monitor resource.
list_linked_resourcesexecresource_group_name, monitor_name, subscription_idList all Azure resources associated to the same Datadog organization as the target resource. List all Azure resources associated to the same Datadog organization as the target resource.
list_monitored_resourcesexecresource_group_name, monitor_name, subscription_idList the resources currently being monitored by the Datadog monitor resource. List the resources currently being monitored by the Datadog monitor resource.
get_default_keyexecresource_group_name, monitor_name, subscription_idGet the default api key. Get the default api key.
set_default_keyexecresource_group_name, monitor_name, subscription_id, keySet the default api key. Set the default api key.
refresh_set_password_linkexecresource_group_name, monitor_name, subscription_idRefresh the set password link and return a latest one. Refresh the set password link and return a latest one.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
monitor_namestringMonitor resource name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get the properties of a specific monitor resource. Get the properties of a specific monitor resource.

SELECT
id,
name,
datadogOrganizationProperties,
identity,
liftrResourceCategory,
liftrResourcePreference,
location,
marketplaceSubscriptionStatus,
monitoringStatus,
provisioningState,
sku,
systemData,
tags,
type,
userInfo
FROM azure_isv.datadog.monitors
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND monitor_name = '{{ monitor_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a monitor resource. Create a monitor resource.

INSERT INTO azure_isv.datadog.monitors (
sku,
properties,
identity,
tags,
location,
resource_group_name,
monitor_name,
subscription_id
)
SELECT
'{{ sku }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}' /* required */,
'{{ resource_group_name }}',
'{{ monitor_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Update a monitor resource. Update a monitor resource.

UPDATE azure_isv.datadog.monitors
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Delete a monitor resource. Delete a monitor resource.

DELETE FROM azure_isv.datadog.monitors
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

List the api keys for a given monitor resource. List the api keys for a given monitor resource.

EXEC azure_isv.datadog.monitors.list_api_keys 
@resource_group_name='{{ resource_group_name }}' --required,
@monitor_name='{{ monitor_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;