Compartir a través de


MetricsAdvisorClient.GetIncidentsForAlertAsync Método

Definición

Dada una alerta, obtiene los incidentes asociados a las anomalías que lo desencadenaron. También se debe especificar el asociado AnomalyAlertConfiguration .

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)

Parámetros

alertConfigurationId
String

Identificador único de AnomalyAlertConfiguration.

alertId
String

Identificador único de la alerta.

options
GetIncidentsForAlertOptions

Conjunto opcional de opciones usadas para configurar el comportamiento de la solicitud.

cancellationToken
CancellationToken

Control CancellationToken de la duración de la solicitud.

Devoluciones

que AsyncPageable<T> contiene la colección de AnomalyIncidents.

Excepciones

alertConfigurationId o alertId es null.

alertConfigurationId o alertId está vacío; o alertConfigurationId no es un GUID válido.

Se aplica a