vw_prometheus_rule_groups
Creates, updates, deletes, gets or lists a vw_prometheus_rule_groups
resource.
Overview
Name | vw_prometheus_rule_groups |
Type | View |
Id | azure.alerts_management.vw_prometheus_rule_groups |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
location as location,
tags as tags,
JSON_EXTRACT(properties, '$.description') as "description",
JSON_EXTRACT(properties, '$.enabled') as "enabled",
JSON_EXTRACT(properties, '$.clusterName') as "cluster_name",
JSON_EXTRACT(properties, '$.scopes') as "scopes",
JSON_EXTRACT(properties, '$.interval') as "interval",
JSON_EXTRACT(properties, '$.rules') as "rules",
subscriptionId,
resourceGroupName,
ruleGroupName
FROM azure.alerts_management.prometheus_rule_groups
WHERE subscriptionId = 'replace-me';
SELECT
location as location,
tags as tags,
json_extract_path_text(properties, '$.description') as "description",
json_extract_path_text(properties, '$.enabled') as "enabled",
json_extract_path_text(properties, '$.clusterName') as "cluster_name",
json_extract_path_text(properties, '$.scopes') as "scopes",
json_extract_path_text(properties, '$.interval') as "interval",
json_extract_path_text(properties, '$.rules') as "rules",
subscriptionId,
resourceGroupName,
ruleGroupName
FROM azure.alerts_management.prometheus_rule_groups
WHERE subscriptionId = 'replace-me';