IIncidentOperations.ListForRuleAsync Method

Definition

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.IncidentListResponse> ListForRuleAsync (string ruleId, bool isActive, System.Threading.CancellationToken cancellationToken);
abstract member ListForRuleAsync : string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.IncidentListResponse>
Public Function ListForRuleAsync (ruleId As String, isActive As Boolean, cancellationToken As CancellationToken) As Task(Of IncidentListResponse)

Parameters

ruleId
String

The rule id.

isActive
Boolean

A boolean to retrieve only active or resolved incidents.

cancellationToken
CancellationToken

Cancellation token.

Returns

The List incidents operation response.

Applies to