MetricsAdvisorClient.GetAlerts Método

Definição

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

public virtual Azure.Pageable<Azure.AI.MetricsAdvisor.Models.AnomalyAlert> GetAlerts (string alertConfigurationId, Azure.AI.MetricsAdvisor.GetAlertsOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAlerts : string * Azure.AI.MetricsAdvisor.GetAlertsOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.AI.MetricsAdvisor.Models.AnomalyAlert>
override this.GetAlerts : string * Azure.AI.MetricsAdvisor.GetAlertsOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.AI.MetricsAdvisor.Models.AnomalyAlert>
Public Overridable Function GetAlerts (alertConfigurationId As String, options As GetAlertsOptions, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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 Pageable<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