MetricAlertResource.GetAllMetricAlertsStatus(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.Pageable<Azure.ResourceManager.Monitor.Models.MetricAlertStatus> GetAllMetricAlertsStatus (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllMetricAlertsStatus : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.Models.MetricAlertStatus>
override this.GetAllMetricAlertsStatus : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.Models.MetricAlertStatus>
Public Overridable Function GetAllMetricAlertsStatus (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of MetricAlertStatus)
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of MetricAlertStatus that may take multiple service requests to iterate over.