fmn.rules.notification module¶
- class fmn.rules.notification.EmailNotification(*, protocol: Literal['email'], content: EmailNotificationContent)[source]¶
Bases:
FrozenModel
- content: EmailNotificationContent¶
- class fmn.rules.notification.EmailNotificationContent(*, headers: EmailNotificationHeaders, body: str)[source]¶
Bases:
FrozenModel
- headers: EmailNotificationHeaders¶
- class fmn.rules.notification.EmailNotificationHeaders(*, To: str, Subject: str)[source]¶
Bases:
FrozenModel
- class fmn.rules.notification.IRCNotification(*, protocol: Literal['irc'], content: IRCNotificationContent)[source]¶
Bases:
FrozenModel
- content: IRCNotificationContent¶
- class fmn.rules.notification.IRCNotificationContent(*, to: str, message: str)[source]¶
Bases:
FrozenModel
- class fmn.rules.notification.MatrixNotification(*, protocol: Literal['matrix'], content: MatrixNotificationContent)[source]¶
Bases:
FrozenModel
- content: MatrixNotificationContent¶
- class fmn.rules.notification.MatrixNotificationContent(*, to: str, message: str)[source]¶
Bases:
FrozenModel
- class fmn.rules.notification.Notification(*, __root__: EmailNotification | IRCNotification | MatrixNotification)[source]¶
Bases:
FrozenModel