vw_metric_alerts
Creates, updates, deletes, gets or lists a vw_metric_alerts
resource.
Overview
Name | vw_metric_alerts |
Type | View |
Id | azure.monitor.vw_metric_alerts |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
id as id,
name as name,
location as location,
type as type,
tags as tags,
JSON_EXTRACT(properties, '$.description') as "description",
JSON_EXTRACT(properties, '$.severity') as "severity",
JSON_EXTRACT(properties, '$.enabled') as "enabled",
JSON_EXTRACT(properties, '$.scopes') as "scopes",
JSON_EXTRACT(properties, '$.evaluationFrequency') as "evaluation_frequency",
JSON_EXTRACT(properties, '$.windowSize') as "window_size",
JSON_EXTRACT(properties, '$.targetResourceType') as "target_resource_type",
JSON_EXTRACT(properties, '$.targetResourceRegion') as "target_resource_region",
JSON_EXTRACT(properties, '$.criteria') as "criteria",
JSON_EXTRACT(properties, '$.autoMitigate') as "auto_mitigate",
JSON_EXTRACT(properties, '$.actions') as "actions",
JSON_EXTRACT(properties, '$.lastUpdatedTime') as "last_updated_time",
JSON_EXTRACT(properties, '$.isMigrated') as "is_migrated",
subscriptionId,
resourceGroupName,
ruleName
FROM azure.monitor.metric_alerts
WHERE subscriptionId = 'replace-me';
SELECT
id as id,
name as name,
location as location,
type as type,
tags as tags,
json_extract_path_text(properties, '$.description') as "description",
json_extract_path_text(properties, '$.severity') as "severity",
json_extract_path_text(properties, '$.enabled') as "enabled",
json_extract_path_text(properties, '$.scopes') as "scopes",
json_extract_path_text(properties, '$.evaluationFrequency') as "evaluation_frequency",
json_extract_path_text(properties, '$.windowSize') as "window_size",
json_extract_path_text(properties, '$.targetResourceType') as "target_resource_type",
json_extract_path_text(properties, '$.targetResourceRegion') as "target_resource_region",
json_extract_path_text(properties, '$.criteria') as "criteria",
json_extract_path_text(properties, '$.autoMitigate') as "auto_mitigate",
json_extract_path_text(properties, '$.actions') as "actions",
json_extract_path_text(properties, '$.lastUpdatedTime') as "last_updated_time",
json_extract_path_text(properties, '$.isMigrated') as "is_migrated",
subscriptionId,
resourceGroupName,
ruleName
FROM azure.monitor.metric_alerts
WHERE subscriptionId = 'replace-me';