Skip to main content

monitored_subscriptions

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

Overview

Namemonitored_subscriptions
TypeResource
Idazure_isv.datadog.monitored_subscriptions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe id of the monitored subscription resource.
namestringName of the monitored subscription resource.
monitoredSubscriptionListarrayList of subscriptions and the state of the monitoring.
operationstringThe operation for the patch on the resource. Known values are: "AddBegin", "AddComplete", "DeleteBegin", "DeleteComplete", and "Active".
typestringThe type of the monitored subscription resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, monitor_name, configuration_name, subscription_idList the subscriptions currently being monitored by the Datadog monitor resource. List the subscriptions currently being monitored by the Datadog monitor resource.
listselectresource_group_name, monitor_name, subscription_idList the subscriptions currently being monitored by the Datadog monitor resource. List the subscriptions currently being monitored by the Datadog monitor resource.
createor_updateinsertresource_group_name, monitor_name, configuration_name, subscription_idAdd the subscriptions that should be monitored by the Datadog monitor resource. Add the subscriptions that should be monitored by the Datadog monitor resource.
updateupdateresource_group_name, monitor_name, configuration_name, subscription_idUpdates the subscriptions that are being monitored by the Datadog monitor resource. Updates the subscriptions that are being monitored by the Datadog monitor resource.
deletedeleteresource_group_name, monitor_name, configuration_name, subscription_idUpdates 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.

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

SELECT examples

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
;

INSERT examples

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
;

UPDATE examples

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

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
;