你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MetricsAdvisorClient.GetIncidentsForAlertAsync Method

Definition

Given an alert, gets the incidents associated with the anomalies that triggered it. The associated AnomalyAlertConfiguration must also be specified.

public virtual Azure.AsyncPageable<Azure.AI.MetricsAdvisor.Models.AnomalyIncident> GetIncidentsForAlertAsync(string alertConfigurationId, string alertId, Azure.AI.MetricsAdvisor.GetIncidentsForAlertOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIncidentsForAlertAsync : string * string * Azure.AI.MetricsAdvisor.GetIncidentsForAlertOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.AI.MetricsAdvisor.Models.AnomalyIncident>
override this.GetIncidentsForAlertAsync : string * string * Azure.AI.MetricsAdvisor.GetIncidentsForAlertOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.AI.MetricsAdvisor.Models.AnomalyIncident>
Public Overridable Function GetIncidentsForAlertAsync (alertConfigurationId As String, alertId As String, Optional options As GetIncidentsForAlertOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AnomalyIncident)

Parameters

alertConfigurationId
String

The unique identifier of the AnomalyAlertConfiguration.

alertId
String

The unique identifier of the alert.

options
GetIncidentsForAlertOptions

An optional set of options used to configure the request's behavior.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

An AsyncPageable<T> containing the collection of AnomalyIncidents.

Exceptions

alertConfigurationId or alertId is null.

alertConfigurationId or alertId is empty; or alertConfigurationId is not a valid GUID.

Applies to