Class RuleWebhookAction


  • public class RuleWebhookAction
    extends RuleAction
    Specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction in this case.
    • Constructor Detail

      • RuleWebhookAction

        public RuleWebhookAction()
    • Method Detail

      • serviceUri

        public String serviceUri()
        Get the serviceUri property: the service uri to Post the notification when the alert activates or resolves.
        Returns:
        the serviceUri value.
      • withServiceUri

        public RuleWebhookAction withServiceUri​(String serviceUri)
        Set the serviceUri property: the service uri to Post the notification when the alert activates or resolves.
        Parameters:
        serviceUri - the serviceUri value to set.
        Returns:
        the RuleWebhookAction object itself.
      • properties

        public Map<String,​String> properties()
        Get the properties property: the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
        Returns:
        the properties value.
      • withProperties

        public RuleWebhookAction withProperties​(Map<String,​String> properties)
        Set the properties property: the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
        Parameters:
        properties - the properties value to set.
        Returns:
        the RuleWebhookAction object itself.