SendNotification

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

Attributes
title The title of the sent notification.
message The message body of the sent notification.
severity The severity (INFO, WARN, ERROR) of the sent notification.
action_type The kind of action to be triggered.

Methods

from_integration

View source

@classmethod
from_integration(
    integration: SlackIntegration,
    *,
    title: str = "",
    text: str = "",
    level: AlertSeverity = AlertSeverity.INFO
) -> Self

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