共用方式為


MetricAlertResource.GetAllMetricAlertsStatusByNameAsync Method

Definition

Retrieve an alert rule status.

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

Parameters

statusName
String

The name of the status.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

statusName is an empty string, and was expected to be non-empty.

statusName is null.

Applies to