Share via


HealthMonitorCollection.GetAllAsync(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.AsyncPageable<Azure.ResourceManager.WorkloadMonitor.HealthMonitorResource> GetAllAsync (string filter = default, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.WorkloadMonitor.HealthMonitorResource>
override this.GetAllAsync : string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.WorkloadMonitor.HealthMonitorResource>
Public Overridable Function GetAllAsync (Optional filter As String = Nothing, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(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

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

Applies to