Skip to main content

health_monitors

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

Overview

Namehealth_monitors
TypeResource
Idazure.workload_monitor.health_monitors

Fields

The following fields are returned by SELECT queries:

The health monitor 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 health status.
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, monitorIdapi-version, $expand
listselectsubscriptionId, resourceGroupName, providerName, resourceCollectionName, resourceNameapi-version, $filter, $expand

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.
$expandstringOptionally expand the monitor’s evidence and/or configuration. Example: $expand=evidence,configuration.
$filterstringOptionally filter by monitor name. Example: $filter=monitorName eq 'logical-disks|C:|disk-free-space-mb.'
api-versionstringThe API version to use for the operation.

SELECT examples

The health monitor matching the specified criteria.

SELECT
id,
name,
properties,
type
FROM azure.workload_monitor.health_monitors
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 api-version = '{{ api-version }}'
AND $expand = '{{ $expand }}'
;