PrometheusRuleGroupAction Class
- java.
lang. Object - com.
azure. resourcemanager. alertsmanagement. models. PrometheusRuleGroupAction
- com.
Implements
public final class PrometheusRuleGroupAction
implements JsonSerializable<PrometheusRuleGroupAction>
An alert action. Only relevant for alerts.
Constructor Summary
| Constructor | Description |
|---|---|
| PrometheusRuleGroupAction() |
Creates an instance of Prometheus |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
actionGroupId()
Get the action |
| Map<String,String> |
actionProperties()
Get the action |
|
static
Prometheus |
fromJson(JsonReader jsonReader)
Reads an instance of Prometheus |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Prometheus |
withActionGroupId(String actionGroupId)
Set the action |
|
Prometheus |
withActionProperties(Map<String,String> actionProperties)
Set the action |
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:
actionProperties
public Map<String,String> actionProperties()
Get the actionProperties property: The properties of an action group object.
Returns:
fromJson
public static PrometheusRuleGroupAction fromJson(JsonReader jsonReader)
Reads an instance of PrometheusRuleGroupAction from the JsonReader.
Parameters:
Returns:
Throws:
toJson
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:
Returns:
withActionProperties
public PrometheusRuleGroupAction withActionProperties(Map<String,String> actionProperties)
Set the actionProperties property: The properties of an action group object.
Parameters:
Returns: