Share via


WorkloadMonitorExtensions.GetHealthMonitors Method

Definition

Gets a collection of HealthMonitorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetHealthMonitors(String, String, String) instead.

public static Azure.ResourceManager.WorkloadMonitor.HealthMonitorCollection GetHealthMonitors (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string providerName, string resourceCollectionName, string resourceName);
static member GetHealthMonitors : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string -> Azure.ResourceManager.WorkloadMonitor.HealthMonitorCollection
<Extension()>
Public Function GetHealthMonitors (resourceGroupResource As ResourceGroupResource, providerName As String, resourceCollectionName As String, resourceName As String) As HealthMonitorCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

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.

Returns

An object representing collection of HealthMonitorResources and their operations over a HealthMonitorResource.

Exceptions

resourceGroupResource, providerName, resourceCollectionName or resourceName is null.

providerName, resourceCollectionName or resourceName is an empty string, and was expected to be non-empty.

Applies to