AlertRulesOperations.ListBySubscriptionAsync(CancellationToken) Method

Definition

List the classic metric alert rules within a subscription.

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

Parameters

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

AsyncPageable<AlertRuleResource>

Applies to