Freigeben über


MetricsAdvisorAdministrationClient.GetHookAsync Methode

Definition

Ruft eine vorhandene NotificationHookab.

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

Parameter

hookId
String

Der eindeutige Bezeichner des NotificationHook-Objekts.

cancellationToken
CancellationToken

Ein CancellationToken , der die Anforderungsdauer steuert.

Gibt zurück

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

Ausnahmen

hookId ist NULL.

hookId ist leer oder keine gültige GUID.

Gilt für: