Language

MonitorExtensions.GetAsync Method

Definition

Gets an incident associated to an alert rule <item> Mocking. To mock this method, please mock GetAsync(String, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.Models.MonitorIncident>> GetAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string ruleName, string incidentName, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.Models.MonitorIncident>>
<Extension()>
Public Function GetAsync (resourceGroupResource As ResourceGroupResource, ruleName As String, incidentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MonitorIncident))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

ruleName
String

The name of the rule.

incidentName
String

The name of the incident to retrieve.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to