WebNotificationHook Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The WebhookHookInfo.
public class WebNotificationHook : Azure.AI.MetricsAdvisor.Administration.NotificationHook
type WebNotificationHook = class
inherit NotificationHook
Public Class WebNotificationHook
Inherits NotificationHook
- Inheritance
Remarks
In order to create a web hook, you must pass this instance to the method CreateHookAsync(NotificationHook, CancellationToken). When a web hook is created or modified, the Endpoint will be called as a test with an empty request body. Your API needs to return a 200 HTTP code to successfully pass the validation.
Constructors
WebNotificationHook(String, Uri) |
Initializes a new instance of the WebNotificationHook class. |
Properties
Administrators |
The list of users with administrative rights to manage this hook. Each element in this list represents a user with
administrator access, but the value of each |
CertificateKey |
The certificate key for authenticating to the API address. Leave this blank if authentication isn't needed. Defaults to an empty string. |
CertificatePassword |
The certificate password for authenticating to the API address. Leave this blank if authentication isn't needed. Defaults to an empty string. |
Description |
A description of this NotificationHook. Defaults to an empty string. (Inherited from NotificationHook) |
Endpoint |
The API address to be called when an alert is triggered. |
ExternalUri |
Optional field which enables a customized redirect, such as for troubleshooting notes. Defaults to an empty string. (Inherited from NotificationHook) |
Headers |
Custom headers to send in the API call. |
HookKind |
The hook kind. (Inherited from NotificationHook) |
Id |
The unique identifier of this NotificationHook. (Inherited from NotificationHook) |
Name |
A custom name for this NotificationHook to be displayed on the web portal. Hook names must be unique across the same Metris Advisor resource. (Inherited from NotificationHook) |
Password |
The password for authenticating to the API address. Leave this blank if authentication isn't needed. Defaults to an empty string. |
Username |
The username for authenticating to the API address. Leave this blank if authentication isn't needed. Defaults to an empty string. |
Applies to
Azure SDK for .NET