Skip to main content
GitHub source

class SendNotification

Defines an automation action that sends a (Slack) notification.

method SendNotification.__init__

Args:
  • integration_id (str): The ID of the Slack integration that will be used to send the notification.
  • message (str): The message body of the sent notification.
  • severity (AlertSeverity): The severity (INFO, WARN, ERROR) of the sent notification.
  • title (str): The title of the sent notification.
  • action_type (Literal[NOTIFICATION]):
Returns: An SendNotification object.

classmethod SendNotification.from_integration

Define a notification action that sends to the given (Slack) integration.