s365b.notify.settings

Notification settings (stored in the database, edited in the web UI).

Attributes

Classes

NotificationSettings

Who gets email, and how it is sent.

Module Contents

s365b.notify.settings.Method[source]
s365b.notify.settings.SEVERITY_ORDER[source]
class s365b.notify.settings.NotificationSettings[source]

Bases: s365b.core.settings_store.SettingsGroup

Who gets email, and how it is sent.

The SMTP password is stored separately, encrypted (save_secrets with the same key).

Variables:
  • enabled – Send email at all. Events are recorded either way.

  • recipients – Addresses of the backup admins.

  • min_severity – Lowest severity emailed immediately.

  • throttle_hours – The same alert (same de-duplication key) is sent at most once per this many hours.

  • subject_prefix – Prefix for subjects; empty means [<product name>].

  • method – Primary sending method.

  • fallback – Method used when the primary fails, or none.

  • graph_sender – Mailbox the Notifications app sends as (Graph).

  • smtp_host – SMTP relay host.

  • smtp_port – SMTP port.

  • smtp_security – starttls, implicit tls, or none (trusted internal relay only).

  • smtp_username – SMTP user; empty for no authentication.

  • smtp_from – From address for SMTP.

key = 'notifications'[source]
enabled: bool = False[source]
recipients: list[str][source]
min_severity: Literal['info', 'warning', 'error'] = 'warning'[source]
throttle_hours: int[source]
subject_prefix: str[source]
method: Method = 'graph'[source]
fallback: Literal['none', 'graph', 'smtp'] = 'none'[source]
graph_sender: str = ''[source]
smtp_host: str = ''[source]
smtp_port: int[source]
smtp_security: Literal['starttls', 'tls', 'none'] = 'starttls'[source]
smtp_username: str = ''[source]
smtp_from: str = ''[source]