AlertRuleIncidentsOperationsExtensions.ListByAlertRuleAsync(IAlertRuleIncidentsOperations, String, String, CancellationToken) Method

Definition

Gets a list of incidents associated to an alert rule

public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Management.Monitor.Models.Incident>> ListByAlertRuleAsync (this Microsoft.Azure.Management.Monitor.IAlertRuleIncidentsOperations operations, string resourceGroupName, string ruleName, System.Threading.CancellationToken cancellationToken = default);
static member ListByAlertRuleAsync : Microsoft.Azure.Management.Monitor.IAlertRuleIncidentsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Management.Monitor.Models.Incident>>
<Extension()>
Public Function ListByAlertRuleAsync (operations As IAlertRuleIncidentsOperations, resourceGroupName As String, ruleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of Incident))

Parameters

operations
IAlertRuleIncidentsOperations

The operations group for this extension method.

resourceGroupName
System.String

The name of the resource group. The name is case insensitive.

ruleName
System.String

The name of the rule.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Incident>>

Applies to