MetricAlertsOperations.ListBySubscriptionAsync(CancellationToken) Method

Definition

Retrieve alert rule definitions in a subscription.

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

Parameters

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

AsyncPageable<MetricAlertResource>

Applies to