tag_rules
Creates, updates, deletes, gets or lists a tag_rules
resource.
Overview
Name | tag_rules |
Type | Resource |
Id | azure_isv.dynatrace.tag_rules |
Fields
- vw_tag_rules
- tag_rules
Name | Datatype | Description |
---|---|---|
log_rules | text | field from the properties object |
metric_rules | text | field from the properties object |
monitorName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
ruleSetName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Properties for the Tag rules resource of a Monitor account. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | monitorName, resourceGroupName, ruleSetName, subscriptionId | |
list | SELECT | monitorName, resourceGroupName, subscriptionId | |
create_or_update | INSERT | monitorName, resourceGroupName, ruleSetName, subscriptionId, data__properties | |
delete | DELETE | monitorName, resourceGroupName, ruleSetName, subscriptionId |
SELECT
examples
- vw_tag_rules
- tag_rules
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 }}';
SELECT
properties,
systemData
FROM azure_isv.dynatrace.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_isv.dynatrace.tag_rules (
monitorName,
resourceGroupName,
ruleSetName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ monitorName }}',
'{{ resourceGroupName }}',
'{{ ruleSetName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: logRules
value:
- name: sendAadLogs
value: []
- name: sendSubscriptionLogs
value: []
- name: sendActivityLogs
value: []
- name: filteringTags
value:
- - name: name
value: string
- name: value
value: string
- name: action
value: []
- name: metricRules
value:
- name: sendingMetrics
value: []
- name: filteringTags
value:
- - name: name
value: string
- name: value
value: string
- name: provisioningState
value: []
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
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 }}';