AlertRulesOperations.ListBySubscription(CancellationToken) Method

Definition

List the classic metric alert rules within a subscription.

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

Parameters

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Pageable<AlertRuleResource>

Applies to