Actions Class

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

Implements

public final class Actions
implements JsonSerializable<Actions>

Actions to invoke when the alert fires.

Constructor Summary

Constructor Description
Actions()

Creates an instance of Actions class.

Method Summary

Modifier and Type Method and Description
List<String> actionGroups()

Get the actionGroups property: Action Group resource Ids to invoke when the alert fires.

Map<String,String> customProperties()

Get the customProperties property: The properties of an alert payload.

static Actions fromJson(JsonReader jsonReader)

Reads an instance of Actions from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Actions withActionGroups(List<String> actionGroups)

Set the actionGroups property: Action Group resource Ids to invoke when the alert fires.

Actions withCustomProperties(Map<String,String> customProperties)

Set the customProperties property: The properties of an alert payload.

Methods inherited from java.lang.Object

Constructor Details

Actions

public Actions()

Creates an instance of Actions class.

Method Details

actionGroups

public List actionGroups()

Get the actionGroups property: Action Group resource Ids to invoke when the alert fires.

Returns:

the actionGroups value.

customProperties

public Map customProperties()

Get the customProperties property: The properties of an alert payload.

Returns:

the customProperties value.

fromJson

public static Actions fromJson(JsonReader jsonReader)

Reads an instance of Actions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Actions 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 Actions.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withActionGroups

public Actions withActionGroups(List actionGroups)

Set the actionGroups property: Action Group resource Ids to invoke when the alert fires.

Parameters:

actionGroups - the actionGroups value to set.

Returns:

the Actions object itself.

withCustomProperties

public Actions withCustomProperties(Map customProperties)

Set the customProperties property: The properties of an alert payload.

Parameters:

customProperties - the customProperties value to set.

Returns:

the Actions object itself.

Applies to