RuleAction Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.RuleAction

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 RuleAction class.

Method Summary

Modifier and Type Method and Description
static RuleAction fromJson(JsonReader jsonReader)

Reads an instance of RuleAction from the JsonReader.

String odataType()

Get the odataType property: specifies the type of the action.

JsonWriter 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:

jsonReader - The JsonReader being read.

Returns:

An instance of RuleAction if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the RuleAction.

odataType

public String odataType()

Get the odataType property: specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction.

Returns:

the odataType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to