Udostępnij za pośrednictwem


HealthMonitorsOperationsExtensions.List 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).

public static Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.WorkloadMonitor.Models.HealthMonitor> List (this Microsoft.Azure.Management.WorkloadMonitor.IHealthMonitorsOperations operations, string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string filter = default, string expand = default);
static member List : Microsoft.Azure.Management.WorkloadMonitor.IHealthMonitorsOperations * string * string * string * string * string * string * string -> Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.WorkloadMonitor.Models.HealthMonitor>
<Extension()>
Public Function List (operations As IHealthMonitorsOperations, subscriptionId As String, resourceGroupName As String, providerName As String, resourceCollectionName As String, resourceName As String, Optional filter As String = Nothing, Optional expand As String = Nothing) As IPage(Of HealthMonitor)

Parameters

operations
IHealthMonitorsOperations

The operations group for this extension method.

subscriptionId
String

The subscription Id of the virtual machine.

resourceGroupName
String

The resource group of the virtual machine.

providerName
String

The provider name (ex: Microsoft.Compute for virtual machines).

resourceCollectionName
String

The resource collection name (ex: virtualMachines for virtual machines).

resourceName
String

The name of the virtual machine.

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.

Returns

Applies to