Class MetricAlertAction
java.lang.Object
com.azure.resourcemanager.monitor.models.MetricAlertAction
An alert action.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the actionGroupId property: the id of the action group to use.voidvalidate()Validates the instance.Get the webhookProperties property: This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.withActionGroupId(String actionGroupId) Set the actionGroupId property: the id of the action group to use.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.
-
Constructor Details
-
MetricAlertAction
public MetricAlertAction()Creates an instance of MetricAlertAction class.
-
-
Method Details
-
actionGroupId
Get the actionGroupId property: the id of the action group to use.- Returns:
- the actionGroupId value.
-
withActionGroupId
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
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
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.
-