MetricAlertAction Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. MetricAlertAction
- com.
Implements
public final class MetricAlertAction
implements JsonSerializable<MetricAlertAction>
An alert action.
Constructor Summary
Constructor | Description |
---|---|
MetricAlertAction() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
actionGroupId()
Get the action |
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Map<String,String> |
webhookProperties()
Get the webhook |
Metric |
withActionGroupId(String actionGroupId)
Set the action |
Metric |
withWebhookProperties(Map<String,String> webhookProperties)
Set the webhook |
Methods inherited from java.lang.Object
Constructor Details
MetricAlertAction
public MetricAlertAction()
Creates an instance of MetricAlertAction class.
Method Details
actionGroupId
public String actionGroupId()
Get the actionGroupId property: the id of the action group to use.
Returns:
fromJson
public static MetricAlertAction fromJson(JsonReader jsonReader)
Reads an instance of MetricAlertAction from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
webhookProperties
public Map
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:
withActionGroupId
public MetricAlertAction withActionGroupId(String actionGroupId)
Set the actionGroupId property: the id of the action group to use.
Parameters:
Returns:
withWebhookProperties
public MetricAlertAction withWebhookProperties(Map
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:
Returns:
Applies to
Azure SDK for Java