AlertRuleIncidentsOperations.ListByAlertRule Method

Definition

Gets a list of incidents associated to an alert rule.

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

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

Pageable<Incident>

Exceptions

System.ArgumentNullException

resourceGroupName or ruleName is null.

Applies to