Class MetricAlertAction


  • public final class MetricAlertAction
    extends Object
    An alert action.
    • Constructor Detail

      • MetricAlertAction

        public MetricAlertAction()
    • 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.