Skip to main content

health_monitors_state_changes

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

Overview

Namehealth_monitors_state_changes
TypeResource
Idazure.workload_monitor.health_monitors_state_changes

Fields

The following fields are returned by SELECT queries:

The health monitor state change matching the specified criteria.

NameDatatypeDescription
idstringThe resource Id. (example: /subscriptions/bc27da3b-3ba2-4e00-a6ec-1fde64aa1e21/resourceGroups/tugamidiAlerts/providers/Microsoft.Compute/virtualMachines/linuxEUS/providers/Microsoft.WorkloadMonitor/monitors/logical-disks|C@3A)
namestringThe resource name. (example: logical-disks|C@3A)
propertiesobjectProperties of the monitor's state change.
typestringThe resource type. (example: Microsoft.WorkloadMonitor/monitors)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, providerName, resourceCollectionName, resourceName, monitorId, timestampUnixapi-version, $expand
listselectsubscriptionId, resourceGroupName, providerName, resourceCollectionName, resourceName, monitorIdapi-version, $filter, $expand, startTimestampUtc, endTimestampUtc

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
monitorIdstringThe monitor Id of the virtual machine.
providerNamestringThe provider name (ex: Microsoft.Compute for virtual machines).
resourceCollectionNamestringThe resource collection name (ex: virtualMachines for virtual machines).
resourceGroupNamestringThe resource group of the virtual machine.
resourceNamestringThe name of the virtual machine.
subscriptionIdstringThe subscription Id of the virtual machine.
timestampUnixstringThe timestamp of the state change (unix format).
$expandstringOptionally expand the monitor’s evidence and/or configuration. Example: $expand=evidence,configuration.
$filterstringOptionally filter by heartbeat condition. Example: $filter=isHeartbeat eq false.
api-versionstringThe API version to use for the operation.
endTimestampUtcstring (date-time)The end of the time window.
startTimestampUtcstring (date-time)The start of the time window.

SELECT examples

The health monitor state change matching the specified criteria.

SELECT
id,
name,
properties,
type
FROM azure.workload_monitor.health_monitors_state_changes
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND providerName = '{{ providerName }}' -- required
AND resourceCollectionName = '{{ resourceCollectionName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
AND monitorId = '{{ monitorId }}' -- required
AND timestampUnix = '{{ timestampUnix }}' -- required
AND api-version = '{{ api-version }}'
AND $expand = '{{ $expand }}'
;