Skip to main content

vw_health_monitors_state_changes

Creates, updates, deletes, gets or lists a vw_health_monitors_state_changes resource.

Overview

Namevw_health_monitors_state_changes
TypeView
Idazure.workload_monitor.vw_health_monitors_state_changes

Fields

See the SQL Definition (view DDL) for fields returned by this view.

SQL Definition

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';