Share via


AlertRuleIncidentsOperationsExtensions.ListByAlertRuleAsync 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
String

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

ruleName
String

The name of the rule.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to