AlertRuleIncidentsOperations.GetAsync Method

Definition

Gets an incident associated to an alert rule.

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

Parameters

resourceGroupName
System.String

The name of the resource group.

ruleName
System.String

The name of the rule.

incidentName
System.String

The name of the incident to retrieve.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Response<Incident>>

Applies to