Class NotificationHook
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.NotificationHook
- Direct Known Subclasses:
EmailNotificationHook
,WebNotificationHook
Describes a hook that receives anomaly incident alerts.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the list of user e-mails and clientIds with administrative rights to manage the hook.abstract String
Gets the description for the Notification hook.getId()
Gets the id of the NotificationHook.abstract String
getName()
Gets the name for the Notification hook.
-
Constructor Details
-
NotificationHook
public NotificationHook()
-
-
Method Details
-
getId
Gets the id of the NotificationHook.- Returns:
- The id of the NotificationHook.
-
getName
Gets the name for the Notification hook.- Returns:
- The name.
-
getDescription
Gets the description for the Notification hook.- Returns:
- The description.
-
getAdmins
Gets the list of user e-mails and clientIds with administrative rights to manage the hook.The administrators have total control over the hook, being allowed to update or delete the hook. Each element in this list represents a user with administrator access, but the value of each string element is either user email address or clientId uniquely identifying the user service principal.
- Returns:
- A list containing email or clientId of admins
-