Freigeben über


MetricsAdvisorAdministrationClient.GetAlertConfigurationAsync Methode

Definition

Ruft eine vorhandene AnomalyAlertConfigurationab.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration>> GetAlertConfigurationAsync(string alertConfigurationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAlertConfigurationAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration>>
override this.GetAlertConfigurationAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration>>
Public Overridable Function GetAlertConfigurationAsync (alertConfigurationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AnomalyAlertConfiguration))

Parameter

alertConfigurationId
String

Der eindeutige Bezeichner des AnomalyAlertConfiguration-Objekts.

cancellationToken
CancellationToken

Ein CancellationToken , der die Lebensdauer der Anforderung steuert.

Gibt zurück

Response<T> mit dem Ergebnis des Vorgangs. Das Ergebnis ist eine AnomalyAlertConfiguration instance, die die angeforderten Informationen enthält.

Ausnahmen

alertConfigurationId ist NULL.

alertConfigurationId ist leer oder keine gültige GUID.

Gilt für: