MetricAlertsOperations.ListByResourceGroup(String, CancellationToken) Method

Definition

Retrieve alert rule definitions in a resource group.

public virtual Azure.Pageable<Azure.ResourceManager.Insights.Models.MetricAlertResource> ListByResourceGroup (string resourceGroupName, System.Threading.CancellationToken cancellationToken = default);
abstract member ListByResourceGroup : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Insights.Models.MetricAlertResource>
override this.ListByResourceGroup : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Insights.Models.MetricAlertResource>
Public Overridable Function ListByResourceGroup (resourceGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of MetricAlertResource)

Parameters

resourceGroupName
System.String

The name of the resource group.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Pageable<MetricAlertResource>

Exceptions

System.ArgumentNullException

resourceGroupName is null.

Applies to