MetricAlertsStatusOperations.ListByName Method

Definition

Retrieve an alert rule status.

public virtual Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertStatusCollection> ListByName (string resourceGroupName, string ruleName, string statusName, System.Threading.CancellationToken cancellationToken = default);
abstract member ListByName : string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertStatusCollection>
override this.ListByName : string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertStatusCollection>
Public Overridable Function ListByName (resourceGroupName As String, ruleName As String, statusName 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.

statusName
System.String

The name of the status.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Response<MetricAlertStatusCollection>

Applies to