Skip to main content

tag_rules

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

Overview

Nametag_rules
TypeResource
Idazure_isv.datadog.tag_rules

Fields

NameDatatypeDescription
idtextThe id of the rule set.
nametextName of the rule set.
automutingtextfield from the properties object
log_rulestextfield from the properties object
metric_rulestextfield from the properties object
monitorNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
ruleSetNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the rule set.

Methods

NameAccessible byRequired ParamsDescription
getSELECTmonitorName, resourceGroupName, ruleSetName, subscriptionId
listSELECTmonitorName, resourceGroupName, subscriptionId
create_or_updateINSERTmonitorName, resourceGroupName, ruleSetName, subscriptionId

SELECT examples

SELECT
id,
name,
automuting,
log_rules,
metric_rules,
monitorName,
provisioning_state,
resourceGroupName,
ruleSetName,
subscriptionId,
system_data,
type
FROM azure_isv.datadog.vw_tag_rules
WHERE monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.datadog.tag_rules (
monitorName,
resourceGroupName,
ruleSetName,
subscriptionId,
properties
)
SELECT
'{{ monitorName }}',
'{{ resourceGroupName }}',
'{{ ruleSetName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;