tag_rules
Creates, updates, deletes, gets or lists a tag_rules
resource.
Overview
Name | tag_rules |
Type | Resource |
Id | azure_isv.datadog.tag_rules |
Fields
- vw_tag_rules
- tag_rules
Name | Datatype | Description |
---|---|---|
id | text | The id of the rule set. |
name | text | Name of the rule set. |
automuting | text | field from the properties object |
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 |
type | text | The type of the rule set. |
Name | Datatype | Description |
---|---|---|
id | string | The id of the rule set. |
name | string | Name of the rule set. |
properties | object | Definition of the properties for a TagRules resource. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the rule set. |
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 |
SELECT
examples
- vw_tag_rules
- tag_rules
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 }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure_isv.datadog.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.datadog.tag_rules (
monitorName,
resourceGroupName,
ruleSetName,
subscriptionId,
properties
)
SELECT
'{{ monitorName }}',
'{{ resourceGroupName }}',
'{{ ruleSetName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: id
value: string
- name: type
value: string
- name: properties
value:
- name: provisioningState
value: []
- name: logRules
value:
- name: sendAadLogs
value: boolean
- name: sendSubscriptionLogs
value: boolean
- name: sendResourceLogs
value: boolean
- name: filteringTags
value:
- - name: name
value: string
- name: value
value: string
- name: action
value: []
- name: metricRules
value:
- name: filteringTags
value:
- - name: name
value: string
- name: value
value: string
- name: automuting
value: boolean
- 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