Freigeben über


MetricsAdvisorAdministrationClient.GetHook(String, CancellationToken) Methode

Definition

Ruft eine vorhandene NotificationHookab.

public virtual Azure.Response<Azure.AI.MetricsAdvisor.Administration.NotificationHook> GetHook(string hookId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetHook : string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Administration.NotificationHook>
override this.GetHook : string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Administration.NotificationHook>
Public Overridable Function GetHook (hookId As String, Optional cancellationToken As CancellationToken = Nothing) As 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: