MetricAlertsStatusOperations.List(String, String, CancellationToken) Method

Definition

Retrieve an alert rule status.

public virtual Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertStatusCollection> List (string resourceGroupName, string ruleName, System.Threading.CancellationToken cancellationToken = default);
abstract member List : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertStatusCollection>
override this.List : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertStatusCollection>
Public Overridable Function List (resourceGroupName As String, ruleName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MetricAlertStatusCollection)

Parameters

resourceGroupName
System.String

The name of the resource group.

ruleName
System.String

The name of the rule.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Response<MetricAlertStatusCollection>

Applies to