RuleEmailAction Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. RuleAction - com.
azure. resourcemanager. monitor. models. RuleEmailAction
- com.
- com.
public final class RuleEmailAction
extends RuleAction
Specifies the action to send email when the rule condition is evaluated. The discriminator is always RuleEmailAction in this case.
Constructor | Description |
---|---|
Rule |
Creates an instance of Rule |
Modifier and Type | Method and Description |
---|---|
List<String> |
custom Get the custom |
static
Rule |
from Reads an instance of Rule |
String |
odata Get the odata |
Boolean |
send Get the send |
Json |
to |
void |
validate()
Validates the instance. |
Rule |
with Set the custom |
Rule |
with Set the send |
Methods inherited from RuleAction
Methods inherited from java.lang.Object
RuleEmailAction
public RuleEmailAction()
Creates an instance of RuleEmailAction class.
customEmails
public List
Get the customEmails property: the list of administrator's custom email addresses to notify of the activation of the alert.
Returns:
fromJson
public static RuleEmailAction fromJson(JsonReader jsonReader)
Reads an instance of RuleEmailAction from the JsonReader.
Parameters:
Returns:
Throws:
odataType
public String odataType()
Get the odataType property: specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction.
Overrides:
RuleEmailAction.odataType()Returns:
sendToServiceOwners
public Boolean sendToServiceOwners()
Get the sendToServiceOwners property: Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RuleEmailAction.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
RuleEmailAction.validate()withCustomEmails
public RuleEmailAction withCustomEmails(List
Set the customEmails property: the list of administrator's custom email addresses to notify of the activation of the alert.
Parameters:
Returns:
withSendToServiceOwners
public RuleEmailAction withSendToServiceOwners(Boolean sendToServiceOwners)
Set the sendToServiceOwners property: Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.
Parameters:
Returns: