monitors
Creates, updates, deletes, gets or lists a monitors
resource.
Overview
Name | monitors |
Type | Resource |
Id | azure_isv.datadog.monitors |
Fields
The following fields are returned by SELECT
queries:
- get
- list_by_resource_group
- list
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. |
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. |
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
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , resourceGroupName , monitorName | ||
list_by_resource_group | select | subscriptionId , resourceGroupName | ||
list | select | subscriptionId | ||
create | insert | subscriptionId , resourceGroupName , monitorName , data__location | ||
update | update | subscriptionId , resourceGroupName , monitorName | ||
delete | delete | subscriptionId , resourceGroupName , monitorName | ||
set_default_key | exec | subscriptionId , resourceGroupName , monitorName , key | ||
refresh_set_password_link | exec | subscriptionId , resourceGroupName , monitorName |
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.
Name | Datatype | Description |
---|---|---|
monitorName | string | Monitor resource name |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
subscriptionId | string | The ID of the target subscription. |
SELECT
examples
- get
- list_by_resource_group
- list
Success
SELECT
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
FROM azure_isv.datadog.monitors
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND monitorName = '{{ monitorName }}' -- required
;
Success
SELECT
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
FROM azure_isv.datadog.monitors
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
;
Success
SELECT
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
FROM azure_isv.datadog.monitors
WHERE subscriptionId = '{{ subscriptionId }}' -- required
;
INSERT
examples
- create
- Manifest
No description available.
INSERT INTO azure_isv.datadog.monitors (
data__sku,
data__properties,
data__identity,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
monitorName
)
SELECT
'{{ sku }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ monitorName }}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
;
# Description fields are for documentation purposes
- name: monitors
props:
- name: subscriptionId
value: string
description: Required parameter for the monitors resource.
- name: resourceGroupName
value: string
description: Required parameter for the monitors resource.
- name: monitorName
value: string
description: Required parameter for the monitors resource.
- name: sku
value: object
- name: properties
value: object
description: |
Properties specific to the monitor resource.
- name: identity
value: object
- name: tags
value: object
- name: location
value: string
UPDATE
examples
- update
No description available.
UPDATE azure_isv.datadog.monitors
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}',
data__sku = '{{ sku }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND monitorName = '{{ monitorName }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type;
DELETE
examples
- delete
No description available.
DELETE FROM azure_isv.datadog.monitors
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND monitorName = '{{ monitorName }}' --required
;
Lifecycle Methods
- set_default_key
- refresh_set_password_link
Success
EXEC azure_isv.datadog.monitors.set_default_key
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@monitorName='{{ monitorName }}' --required
@@json=
'{
"createdBy": "{{ createdBy }}",
"name": "{{ name }}",
"key": "{{ key }}",
"created": "{{ created }}"
}'
;
Success
EXEC azure_isv.datadog.monitors.refresh_set_password_link
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@monitorName='{{ monitorName }}' --required
;