Skip to main content

monitors

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

Overview

Namemonitors
TypeResource
Idazure_isv.datadog.monitors

Fields

NameDatatypeDescription
idtextARM id of the monitor resource.
nametextName of the monitor resource.
datadog_organization_propertiestextfield from the properties object
identitytextfield from the properties object
liftr_resource_categorytextfield from the properties object
liftr_resource_preferencetextfield from the properties object
locationtextfield from the properties object
marketplace_subscription_statustextfield from the properties object
monitorNametextfield from the properties object
monitoring_statustextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextfield from the properties object
typetextThe type of the monitor resource.
user_infotextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmonitorName, resourceGroupName, subscriptionId
listSELECTsubscriptionId
list_by_resource_groupSELECTresourceGroupName, subscriptionId
createINSERTmonitorName, resourceGroupName, subscriptionId, data__location
deleteDELETEmonitorName, resourceGroupName, subscriptionId
updateUPDATEmonitorName, resourceGroupName, subscriptionId
refresh_set_password_linkEXECmonitorName, resourceGroupName, subscriptionId
set_default_keyEXECmonitorName, resourceGroupName, subscriptionId, data__key

SELECT examples

SELECT
id,
name,
datadog_organization_properties,
identity,
liftr_resource_category,
liftr_resource_preference,
location,
marketplace_subscription_status,
monitorName,
monitoring_status,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
system_data,
tags,
type,
user_info
FROM azure_isv.datadog.vw_monitors
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new monitors resource.

/*+ create */
INSERT INTO azure_isv.datadog.monitors (
monitorName,
resourceGroupName,
subscriptionId,
data__location,
sku,
properties,
identity,
tags,
location
)
SELECT
'{{ monitorName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ sku }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a monitors resource.

/*+ update */
UPDATE azure_isv.datadog.monitors
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
sku = '{{ sku }}'
WHERE
monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified monitors resource.

/*+ delete */
DELETE FROM azure_isv.datadog.monitors
WHERE monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';