次の方法で共有


AlertRuleResource.GetAlertRuleIncident(String, CancellationToken) メソッド

定義

アラート ルールに関連付けられているインシデントを取得します

  • 要求パス/サブスクリプション/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}/incidents/{incidentName}
  • 操作IdAlertRuleIncidents_Get
public virtual Azure.Response<Azure.ResourceManager.Monitor.Models.MonitorIncident> GetAlertRuleIncident (string incidentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAlertRuleIncident : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Monitor.Models.MonitorIncident>
override this.GetAlertRuleIncident : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Monitor.Models.MonitorIncident>
Public Overridable Function GetAlertRuleIncident (incidentName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MonitorIncident)

パラメーター

incidentName
String

取得するインシデントの名前。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

incidentName は空の文字列であり、空でないと想定されていました。

incidentName が null です。

適用対象