PrometheusRuleGroupAction Class

  • java.lang.Object
    • com.azure.resourcemanager.alertsmanagement.models.PrometheusRuleGroupAction

Implements

public final class PrometheusRuleGroupAction
implements JsonSerializable<PrometheusRuleGroupAction>

An alert action. Only relevant for alerts.

Constructor Summary

Constructor Description
PrometheusRuleGroupAction()

Creates an instance of PrometheusRuleGroupAction class.

Method Summary

Modifier and Type Method and Description
String actionGroupId()

Get the actionGroupId property: The resource id of the action group to use.

Map<String,String> actionProperties()

Get the actionProperties property: The properties of an action group object.

static PrometheusRuleGroupAction fromJson(JsonReader jsonReader)

Reads an instance of PrometheusRuleGroupAction from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PrometheusRuleGroupAction withActionGroupId(String actionGroupId)

Set the actionGroupId property: The resource id of the action group to use.

PrometheusRuleGroupAction withActionProperties(Map<String,String> actionProperties)

Set the actionProperties property: The properties of an action group object.

Methods inherited from java.lang.Object

Constructor Details

PrometheusRuleGroupAction

public PrometheusRuleGroupAction()

Creates an instance of PrometheusRuleGroupAction class.

Method Details

actionGroupId

public String actionGroupId()

Get the actionGroupId property: The resource id of the action group to use.

Returns:

the actionGroupId value.

actionProperties

public Map<String,String> actionProperties()

Get the actionProperties property: The properties of an action group object.

Returns:

the actionProperties value.

fromJson

public static PrometheusRuleGroupAction fromJson(JsonReader jsonReader)

Reads an instance of PrometheusRuleGroupAction from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withActionGroupId

public PrometheusRuleGroupAction withActionGroupId(String actionGroupId)

Set the actionGroupId property: The resource id of the action group to use.

Parameters:

actionGroupId - the actionGroupId value to set.

Returns:

the PrometheusRuleGroupAction object itself.

withActionProperties

public PrometheusRuleGroupAction withActionProperties(Map<String,String> actionProperties)

Set the actionProperties property: The properties of an action group object.

Parameters:

actionProperties - the actionProperties value to set.

Returns:

the PrometheusRuleGroupAction object itself.

Applies to