Class MetricAlertAction
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.MetricAlertAction
-
public final class MetricAlertAction extends Object
An alert action.
-
-
Constructor Summary
Constructors Constructor Description MetricAlertAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringactionGroupId()Get the actionGroupId property: the id of the action group to use.voidvalidate()Validates the instance.Map<String,String>webhookProperties()Get the webhookProperties property: This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.MetricAlertActionwithActionGroupId(String actionGroupId)Set the actionGroupId property: the id of the action group to use.MetricAlertActionwithWebhookProperties(Map<String,String> webhookProperties)Set the webhookProperties property: This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
-
-
-
Method Detail
-
actionGroupId
public String actionGroupId()
Get the actionGroupId property: the id of the action group to use.- Returns:
- the actionGroupId value.
-
withActionGroupId
public MetricAlertAction withActionGroupId(String actionGroupId)
Set the actionGroupId property: the id of the action group to use.- Parameters:
actionGroupId- the actionGroupId value to set.- Returns:
- the MetricAlertAction object itself.
-
webhookProperties
public Map<String,String> webhookProperties()
Get the webhookProperties property: This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.- Returns:
- the webhookProperties value.
-
withWebhookProperties
public MetricAlertAction withWebhookProperties(Map<String,String> webhookProperties)
Set the webhookProperties property: This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.- Parameters:
webhookProperties- the webhookProperties value to set.- Returns:
- the MetricAlertAction object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-