RuleAction Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. RuleAction
- com.
Implements
public class RuleAction
implements JsonSerializable<RuleAction>
The action that is performed when the alert rule becomes active, and when an alert condition is resolved.
Constructor Summary
Constructor | Description |
---|---|
RuleAction() |
Creates an instance of Rule |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Rule |
fromJson(JsonReader jsonReader)
Reads an instance of Rule |
String |
odataType()
Get the odata |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
RuleAction
public RuleAction()
Creates an instance of RuleAction class.
Method Details
fromJson
public static RuleAction fromJson(JsonReader jsonReader)
Reads an instance of RuleAction 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.
Returns:
toJson
validate
public void validate()
Validates the instance.
Applies to
Azure SDK for Java