你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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