다음을 통해 공유


MetricAlertResource.GetAllMetricAlertsStatusAsync(CancellationToken) Method

Definition

Retrieve an alert rule status.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status
  • Operation Id: MetricAlertsStatus_List
  • Default Api Version: 2018-03-01
public virtual Azure.AsyncPageable<Azure.ResourceManager.Monitor.Models.MetricAlertStatus> GetAllMetricAlertsStatusAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllMetricAlertsStatusAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Monitor.Models.MetricAlertStatus>
override this.GetAllMetricAlertsStatusAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Monitor.Models.MetricAlertStatus>
Public Overridable Function GetAllMetricAlertsStatusAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of MetricAlertStatus)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of MetricAlertStatus that may take multiple service requests to iterate over.

Applies to