Class RuleEmailAction
java.lang.Object
com.microsoft.azure.management.monitor.RuleAction
com.microsoft.azure.management.monitor.RuleEmailAction
Specifies the action to send email when the rule condition is evaluated. The
discriminator is always RuleEmailAction in this case.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the list of administrator's custom email addresses to notify of the activation of the alert.Get whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.withCustomEmails
(List<String> customEmails) Set the list of administrator's custom email addresses to notify of the activation of the alert.withSendToServiceOwners
(Boolean sendToServiceOwners) Set whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
-
Constructor Details
-
RuleEmailAction
public RuleEmailAction()
-
-
Method Details
-
sendToServiceOwners
Get whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.- Returns:
- the sendToServiceOwners value
-
withSendToServiceOwners
Set whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.- Parameters:
sendToServiceOwners
- the sendToServiceOwners value to set- Returns:
- the RuleEmailAction object itself.
-
customEmails
Get the list of administrator's custom email addresses to notify of the activation of the alert.- Returns:
- the customEmails value
-
withCustomEmails
Set the list of administrator's custom email addresses to notify of the activation of the alert.- Parameters:
customEmails
- the customEmails value to set- Returns:
- the RuleEmailAction object itself.
-