Class EmailNotificationHook
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.NotificationHook
com.azure.ai.metricsadvisor.administration.models.EmailNotificationHook
A hook that describes email based incident alerts notification.
-
Constructor Summary
ConstructorDescriptionEmailNotificationHook
(String name) Create a new instance of EmailNotificationHook.EmailNotificationHook
(String name, List<String> emails) Create a new instance of EmailNotificationHook. -
Method Summary
Modifier and TypeMethodDescriptionGets the description for the Notification hook.Gets the emails to send the alerts.Gets the customized external link which is displayed in the title bar of the alert email.getName()
Gets the name for the Notification hook.Sets the user e-mails and clientIds with administrative rights to manage the hook.setDescription
(String description) Sets email hook description.setEmailsToAlert
(List<String> emails) Sets the emails to send the alert.setExternalLink
(String externalLink) Sets the customized external link which is displayed in the title bar of the alert email.Sets email hook name.Methods inherited from class com.azure.ai.metricsadvisor.administration.models.NotificationHook
getAdmins, getId
-
Constructor Details
-
EmailNotificationHook
Create a new instance of EmailNotificationHook.- Parameters:
name
- The email hook name.
-
EmailNotificationHook
Create a new instance of EmailNotificationHook.- Parameters:
name
- The email hook name.emails
- The emails to send the alerts.
-
-
Method Details
-
getName
Description copied from class:NotificationHook
Gets the name for the Notification hook.- Specified by:
getName
in classNotificationHook
- Returns:
- The name.
-
getDescription
Description copied from class:NotificationHook
Gets the description for the Notification hook.- Specified by:
getDescription
in classNotificationHook
- Returns:
- The description.
-
getExternalLink
Gets the customized external link which is displayed in the title bar of the alert email.- Returns:
- The external link.
-
getEmailsToAlert
Gets the emails to send the alerts.- Returns:
- The emails.
-
setEmailsToAlert
Sets the emails to send the alert.- Parameters:
emails
- The emails.- Returns:
- The EmailNotificationHook object itself.
-
setName
Sets email hook name.- Parameters:
name
- The email hook name.- Returns:
- The EmailNotificationHook object itself.
-
setDescription
Sets email hook description.- Parameters:
description
- The email hook description.- Returns:
- The EmailNotificationHook object itself.
-
setExternalLink
Sets the customized external link which is displayed in the title bar of the alert email.- Parameters:
externalLink
- The customized link.- Returns:
- The EmailNotificationHook object itself.
-
setAdmins
Sets the 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.
- Parameters:
admins
- A list containing email or clientId of admins- Returns:
- The EmailNotificationHook object itself.
-