Share via


MockableWorkloadMonitorResourceGroupResource.GetHealthMonitors Method

Definition

Gets a collection of HealthMonitorResources in the ResourceGroupResource.

public virtual Azure.ResourceManager.WorkloadMonitor.HealthMonitorCollection GetHealthMonitors (string providerName, string resourceCollectionName, string resourceName);
abstract member GetHealthMonitors : string * string * string -> Azure.ResourceManager.WorkloadMonitor.HealthMonitorCollection
override this.GetHealthMonitors : string * string * string -> Azure.ResourceManager.WorkloadMonitor.HealthMonitorCollection
Public Overridable Function GetHealthMonitors (providerName As String, resourceCollectionName As String, resourceName As String) As HealthMonitorCollection

Parameters

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

providerName, resourceCollectionName or resourceName is null.

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

Applies to