MetricAlertAction Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. MetricAlertAction
- com.
public final class 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 |
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:
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for