s365b.notify.settings ===================== .. py:module:: s365b.notify.settings .. autoapi-nested-parse:: Notification settings (stored in the database, edited in the web UI). Attributes ---------- .. autoapisummary:: s365b.notify.settings.Method s365b.notify.settings.SEVERITY_ORDER Classes ------- .. autoapisummary:: s365b.notify.settings.NotificationSettings Module Contents --------------- .. py:data:: Method .. py:data:: SEVERITY_ORDER .. py:class:: NotificationSettings Bases: :py:obj:`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). :ivar enabled: Send email at all. Events are recorded either way. :ivar recipients: Addresses of the backup admins. :ivar min_severity: Lowest severity emailed immediately. :ivar throttle_hours: The same alert (same de-duplication key) is sent at most once per this many hours. :ivar subject_prefix: Prefix for subjects; empty means ``[]``. :ivar method: Primary sending method. :ivar fallback: Method used when the primary fails, or ``none``. :ivar graph_sender: Mailbox the Notifications app sends as (Graph). :ivar smtp_host: SMTP relay host. :ivar smtp_port: SMTP port. :ivar smtp_security: ``starttls``, implicit ``tls``, or ``none`` (trusted internal relay only). :ivar smtp_username: SMTP user; empty for no authentication. :ivar smtp_from: From address for SMTP. .. py:attribute:: key :value: 'notifications' .. py:attribute:: enabled :type: bool :value: False .. py:attribute:: recipients :type: list[str] .. py:attribute:: min_severity :type: Literal['info', 'warning', 'error'] :value: 'warning' .. py:attribute:: throttle_hours :type: int .. py:attribute:: subject_prefix :type: str .. py:attribute:: method :type: Method :value: 'graph' .. py:attribute:: fallback :type: Literal['none', 'graph', 'smtp'] :value: 'none' .. py:attribute:: graph_sender :type: str :value: '' .. py:attribute:: smtp_host :type: str :value: '' .. py:attribute:: smtp_port :type: int .. py:attribute:: smtp_security :type: Literal['starttls', 'tls', 'none'] :value: 'starttls' .. py:attribute:: smtp_username :type: str :value: '' .. py:attribute:: smtp_from :type: str :value: ''