Language

MonitorExtensions.Get Method

Definition

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

public static Azure.Response<Azure.ResourceManager.Monitor.Models.MonitorIncident> Get(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string ruleName, string incidentName, System.Threading.CancellationToken cancellationToken = default);
static member Get : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Monitor.Models.MonitorIncident>
<Extension()>
Public Function Get (resourceGroupResource As ResourceGroupResource, ruleName As String, incidentName As String, Optional cancellationToken As CancellationToken = Nothing) As 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