HealthMonitorCollection.GetAll(String, String, CancellationToken) Method

Definition

Get the current health status of all monitors of a virtual machine. Optional parameters: $expand (retrieve the monitor's evidence and configuration) and $filter (filter by monitor name).

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceCollectionName}/{resourceName}/providers/Microsoft.WorkloadMonitor/monitors
  • Operation Id: HealthMonitors_List
public virtual Azure.Pageable<Azure.ResourceManager.WorkloadMonitor.HealthMonitorResource> GetAll (string filter = default, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.WorkloadMonitor.HealthMonitorResource>
override this.GetAll : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.WorkloadMonitor.HealthMonitorResource>
Public Overridable Function GetAll (Optional filter As String = Nothing, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of HealthMonitorResource)

Parameters

filter
String

Optionally filter by monitor name. Example: $filter=monitorName eq 'logical-disks|C:|disk-free-space-mb.'.

expand
String

Optionally expand the monitor’s evidence and/or configuration. Example: $expand=evidence,configuration.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of HealthMonitorResource that may take multiple service requests to iterate over.

Applies to