MetricsAdvisorAdministrationClient.CreateHook Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Erstellt eine NotificationHook und weist ihr eine eindeutige ID zu.
public virtual Azure.Response<Azure.AI.MetricsAdvisor.Administration.NotificationHook> CreateHook(Azure.AI.MetricsAdvisor.Administration.NotificationHook hook, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateHook : Azure.AI.MetricsAdvisor.Administration.NotificationHook * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Administration.NotificationHook>
override this.CreateHook : Azure.AI.MetricsAdvisor.Administration.NotificationHook * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Administration.NotificationHook>
Public Overridable Function CreateHook (hook As NotificationHook, Optional cancellationToken As CancellationToken = Nothing) As Response(Of NotificationHook)
Parameter
- hook
- NotificationHook
Gibt an, wie das erstellte NotificationHook konfiguriert werden soll.
- 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 Informationen zum erstellten Hook enthält.
Ausnahmen
hook
ist NULL; oder hook
ist ein EmailNotificationHook und hook
. EmailsToAlert ist NULL.
hook
ist ein EmailNotificationHook und hook
. EmailsToAlert ist leer.
Gilt für:
Azure SDK for .NET