MetricsAdvisorClient.GetAlertsAsync Método

Definição

Obtém uma coleção de itens que descrevem os alertas disparados por um determinado AnomalyAlertConfiguration.

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

Parâmetros

alertConfigurationId
String

O identificador exclusivo do AnomalyAlertConfiguration.

options
GetAlertsOptions

O conjunto de opções usado para configurar o comportamento da solicitação.

cancellationToken
CancellationToken

Um CancellationToken que controla o tempo de vida da solicitação.

Retornos

Um AsyncPageable<T> que contém a coleção de AnomalyAlerts.

Exceções

alertConfigurationId ou options é nulo.

alertConfigurationId está vazio ou não é um GUID válido.

Aplica-se a