monitors
Creates, updates, deletes, gets or lists a monitors
resource.
Overview
Name | monitors |
Type | Resource |
Id | azure_isv.datadog.monitors |
Fields
- vw_monitors
- monitors
Name | Datatype | Description |
---|---|---|
id | text | ARM id of the monitor resource. |
name | text | Name of the monitor resource. |
datadog_organization_properties | text | field from the properties object |
identity | text | field from the properties object |
liftr_resource_category | text | field from the properties object |
liftr_resource_preference | text | field from the properties object |
location | text | field from the properties object |
marketplace_subscription_status | text | field from the properties object |
monitorName | text | field from the properties object |
monitoring_status | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
sku | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | field from the properties object |
type | text | The type of the monitor resource. |
user_info | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | ARM id of the monitor resource. |
name | string | Name of the monitor resource. |
identity | object | |
location | string | |
properties | object | Properties specific to the monitor resource. |
sku | object | |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | |
type | string | The type of the monitor resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | monitorName, resourceGroupName, subscriptionId | |
list | SELECT | subscriptionId | |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | |
create | INSERT | monitorName, resourceGroupName, subscriptionId, data__location | |
delete | DELETE | monitorName, resourceGroupName, subscriptionId | |
update | UPDATE | monitorName, resourceGroupName, subscriptionId | |
refresh_set_password_link | EXEC | monitorName, resourceGroupName, subscriptionId | |
set_default_key | EXEC | monitorName, resourceGroupName, subscriptionId, data__key |
SELECT
examples
- vw_monitors
- monitors
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 }}';
SELECT
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
FROM azure_isv.datadog.monitors
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new monitors
resource.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: sku
value:
- name: name
value: string
- name: properties
value:
- name: provisioningState
value: []
- name: monitoringStatus
value: []
- name: marketplaceSubscriptionStatus
value: []
- name: datadogOrganizationProperties
value:
- name: name
value: string
- name: id
value: string
- name: linkingAuthCode
value: string
- name: linkingClientId
value: string
- name: redirectUri
value: string
- name: apiKey
value: string
- name: applicationKey
value: string
- name: enterpriseAppId
value: string
- name: cspm
value: boolean
- name: userInfo
value:
- name: name
value: string
- name: emailAddress
value: string
- name: phoneNumber
value: string
- name: liftrResourceCategory
value: []
- name: liftrResourcePreference
value: integer
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: []
- name: tags
value: object
- name: location
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
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 }}';