SendNotification

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

Attributes:

  • action_type (Literal): The kind of action to be triggered.
  • 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.

method from_integration

from_integration(cls, integration: 'SlackIntegration', *, title: 'str' = '', text: 'str' = '', level: 'AlertSeverity' = <AlertSeverity.INFO: 'INFO'>) -> 'Self'

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