vw_health_monitors_state_changes
Creates, updates, deletes, gets or lists a vw_health_monitors_state_changes
resource.
Overview
Name | vw_health_monitors_state_changes |
Type | View |
Id | azure.workload_monitor.vw_health_monitors_state_changes |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
id as id,
name as name,
type as type,
JSON_EXTRACT(properties, '$.monitorName') as "monitor_name",
JSON_EXTRACT(properties, '$.monitorType') as "monitor_type",
JSON_EXTRACT(properties, '$.monitoredObject') as "monitored_object",
JSON_EXTRACT(properties, '$.evaluationTimestamp') as "evaluation_timestamp",
JSON_EXTRACT(properties, '$.currentStateFirstObservedTimestamp') as "current_state_first_observed_timestamp",
JSON_EXTRACT(properties, '$.previousMonitorState') as "previous_monitor_state",
JSON_EXTRACT(properties, '$.currentMonitorState') as "current_monitor_state",
JSON_EXTRACT(properties, '$.evidence') as "evidence",
JSON_EXTRACT(properties, '$.monitorConfiguration') as "monitor_configuration",
subscriptionId,
resourceGroupName,
providerName,
resourceCollectionName,
resourceName,
monitorId,
timestampUnix
FROM azure.workload_monitor.health_monitors_state_changes
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND providerName = 'replace-me' AND resourceCollectionName = 'replace-me' AND resourceName = 'replace-me' AND monitorId = 'replace-me';
SELECT
id as id,
name as name,
type as type,
json_extract_path_text(properties, '$.monitorName') as "monitor_name",
json_extract_path_text(properties, '$.monitorType') as "monitor_type",
json_extract_path_text(properties, '$.monitoredObject') as "monitored_object",
json_extract_path_text(properties, '$.evaluationTimestamp') as "evaluation_timestamp",
json_extract_path_text(properties, '$.currentStateFirstObservedTimestamp') as "current_state_first_observed_timestamp",
json_extract_path_text(properties, '$.previousMonitorState') as "previous_monitor_state",
json_extract_path_text(properties, '$.currentMonitorState') as "current_monitor_state",
json_extract_path_text(properties, '$.evidence') as "evidence",
json_extract_path_text(properties, '$.monitorConfiguration') as "monitor_configuration",
subscriptionId,
resourceGroupName,
providerName,
resourceCollectionName,
resourceName,
monitorId,
timestampUnix
FROM azure.workload_monitor.health_monitors_state_changes
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND providerName = 'replace-me' AND resourceCollectionName = 'replace-me' AND resourceName = 'replace-me' AND monitorId = 'replace-me';