HealthMonitorCollection.GetAllAsync(String, String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.