vw_alert_rule_resources
Creates, updates, deletes, gets or lists a vw_alert_rule_resources
resource.
Overview
Name | vw_alert_rule_resources |
Type | View |
Id | azure.db_watcher.vw_alert_rule_resources |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
JSON_EXTRACT(properties, '$.alertRuleResourceId') as "alert_rule_resource_id",
JSON_EXTRACT(properties, '$.createdWithProperties') as "created_with_properties",
JSON_EXTRACT(properties, '$.creationTime') as "creation_time",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.alertRuleTemplateId') as "alert_rule_template_id",
JSON_EXTRACT(properties, '$.alertRuleTemplateVersion') as "alert_rule_template_version",
subscriptionId,
resourceGroupName,
watcherName,
alertRuleResourceName
FROM azure.db_watcher.alert_rule_resources
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND watcherName = 'replace-me';
SELECT
json_extract_path_text(properties, '$.alertRuleResourceId') as "alert_rule_resource_id",
json_extract_path_text(properties, '$.createdWithProperties') as "created_with_properties",
json_extract_path_text(properties, '$.creationTime') as "creation_time",
json_extract_path_text(properties, '$.provisioningState') as "provisioning_state",
json_extract_path_text(properties, '$.alertRuleTemplateId') as "alert_rule_template_id",
json_extract_path_text(properties, '$.alertRuleTemplateVersion') as "alert_rule_template_version",
subscriptionId,
resourceGroupName,
watcherName,
alertRuleResourceName
FROM azure.db_watcher.alert_rule_resources
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND watcherName = 'replace-me';