Skip to main content

tag_rules

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

Overview

Nametag_rules
TypeResource
Idazure_isv.dynatrace.tag_rules

Fields

NameDatatypeDescription
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

Methods

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

SELECT examples

SELECT
log_rules,
metric_rules,
monitorName,
provisioning_state,
resourceGroupName,
ruleSetName,
subscriptionId,
system_data
FROM azure_isv.dynatrace.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.dynatrace.tag_rules (
monitorName,
resourceGroupName,
ruleSetName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ monitorName }}',
'{{ resourceGroupName }}',
'{{ ruleSetName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified tag_rules resource.

/*+ delete */
DELETE FROM azure_isv.dynatrace.tag_rules
WHERE monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleSetName = '{{ ruleSetName }}'
AND subscriptionId = '{{ subscriptionId }}';