MetricAlertsOperations.ListBySubscription(CancellationToken) Method

Definition

Retrieve alert rule definitions in a subscription.

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

Parameters

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Pageable<MetricAlertResource>

Applies to