monitored_subscriptions
Creates, updates, deletes, gets or lists a monitored_subscriptions resource.
Overview
| Name | monitored_subscriptions |
| Type | Resource |
| Id | azure_isv.datadog.monitored_subscriptions |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | The id of the monitored subscription resource. |
name | string | Name of the monitored subscription resource. |
monitoredSubscriptionList | array | List of subscriptions and the state of the monitoring. |
operation | string | The operation for the patch on the resource. Known values are: "AddBegin", "AddComplete", "DeleteBegin", "DeleteComplete", and "Active". |
type | string | The type of the monitored subscription resource. |
| Name | Datatype | Description |
|---|---|---|
id | string | The id of the monitored subscription resource. |
name | string | Name of the monitored subscription resource. |
monitoredSubscriptionList | array | List of subscriptions and the state of the monitoring. |
operation | string | The operation for the patch on the resource. Known values are: "AddBegin", "AddComplete", "DeleteBegin", "DeleteComplete", and "Active". |
type | string | The type of the monitored subscription resource. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, monitor_name, configuration_name, subscription_id | List the subscriptions currently being monitored by the Datadog monitor resource. List the subscriptions currently being monitored by the Datadog monitor resource. | |
list | select | resource_group_name, monitor_name, subscription_id | List the subscriptions currently being monitored by the Datadog monitor resource. List the subscriptions currently being monitored by the Datadog monitor resource. | |
createor_update | insert | resource_group_name, monitor_name, configuration_name, subscription_id | Add the subscriptions that should be monitored by the Datadog monitor resource. Add the subscriptions that should be monitored by the Datadog monitor resource. | |
update | update | resource_group_name, monitor_name, configuration_name, subscription_id | Updates the subscriptions that are being monitored by the Datadog monitor resource. Updates the subscriptions that are being monitored by the Datadog monitor resource. | |
delete | delete | resource_group_name, monitor_name, configuration_name, subscription_id | Updates the subscriptions that are being monitored by the Datadog monitor resource. Updates the subscriptions that are being monitored by the Datadog monitor resource. |
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 |
|---|---|---|
configuration_name | string | Configuration name. Required. |
monitor_name | string | Monitor resource name. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list
List the subscriptions currently being monitored by the Datadog monitor resource. List the subscriptions currently being monitored by the Datadog monitor resource.
SELECT
id,
name,
monitoredSubscriptionList,
operation,
type
FROM azure_isv.datadog.monitored_subscriptions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND monitor_name = '{{ monitor_name }}' -- required
AND configuration_name = '{{ configuration_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
List the subscriptions currently being monitored by the Datadog monitor resource. List the subscriptions currently being monitored by the Datadog monitor resource.
SELECT
id,
name,
monitoredSubscriptionList,
operation,
type
FROM azure_isv.datadog.monitored_subscriptions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND monitor_name = '{{ monitor_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- createor_update
- Manifest
Add the subscriptions that should be monitored by the Datadog monitor resource. Add the subscriptions that should be monitored by the Datadog monitor resource.
INSERT INTO azure_isv.datadog.monitored_subscriptions (
properties,
resource_group_name,
monitor_name,
configuration_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ monitor_name }}',
'{{ configuration_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
type
;
# Description fields are for documentation purposes
- name: monitored_subscriptions
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the monitored_subscriptions resource.
- name: monitor_name
value: "{{ monitor_name }}"
description: Required parameter for the monitored_subscriptions resource.
- name: configuration_name
value: "{{ configuration_name }}"
description: Required parameter for the monitored_subscriptions resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the monitored_subscriptions resource.
- name: properties
description: |
The request to update subscriptions needed to be monitored by the Datadog monitor resource.
value:
operation: "{{ operation }}"
monitoredSubscriptionList:
- subscriptionId: "{{ subscriptionId }}"
status: "{{ status }}"
error: "{{ error }}"
tagRules:
provisioningState: "{{ provisioningState }}"
logRules:
sendAadLogs: {{ sendAadLogs }}
sendSubscriptionLogs: {{ sendSubscriptionLogs }}
sendResourceLogs: {{ sendResourceLogs }}
filteringTags:
- name: "{{ name }}"
value: "{{ value }}"
action: "{{ action }}"
metricRules:
filteringTags:
- name: "{{ name }}"
value: "{{ value }}"
action: "{{ action }}"
automuting: {{ automuting }}
UPDATE examples
- update
Updates the subscriptions that are being monitored by the Datadog monitor resource. Updates the subscriptions that are being monitored by the Datadog monitor resource.
UPDATE azure_isv.datadog.monitored_subscriptions
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
type;
DELETE examples
- delete
Updates the subscriptions that are being monitored by the Datadog monitor resource. Updates the subscriptions that are being monitored by the Datadog monitor resource.
DELETE FROM azure_isv.datadog.monitored_subscriptions
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;