Language

MockableMonitorResourceGroupResource.GetAsync Method

Definition

Gets an incident associated to an alert rule

  • Request Path. : /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}/incidents/{incidentName}.
  • Operation Id. : AlertRuleIncidentsOperationGroup_Get.
  • Default Api Version. : 2016-03-01.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.Models.MonitorIncident>> GetAsync(string ruleName, string incidentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.Models.MonitorIncident>>
override this.GetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.Models.MonitorIncident>>
Public Overridable Function GetAsync (ruleName As String, incidentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MonitorIncident))

Parameters

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

ruleName or incidentName is null.

ruleName or incidentName is an empty string, and was expected to be non-empty.

Applies to