MetricAlertsOperations.ListByResourceGroupAsync Method

Definition

Retrieve alert rule definitions in a resource group.

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

Parameters

resourceGroupName
System.String

The name of the resource group.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

AsyncPageable<MetricAlertResource>

Exceptions

System.ArgumentNullException

resourceGroupName is null.

Applies to