NotificationChannel#
- class ansys.tools.common.notifications.NotificationChannel#
Bases:
str,enum.EnumWell-known apprise notification channel URL schemes.
Each member’s value is the scheme prefix of the apprise URL for that channel. Members with self-contained URLs (
WINDOWS,MACOS,DBUS) can be used directly. Members that require credentials or IDs (SLACK,MSTEAMS,MAILTO,MAILTOS) serve as the scheme prefix — concatenate your tokens to form the full URL:NotificationChannel.SLACK + "token/channel" NotificationChannel.MAILTO + "user:pass@gmail.com"
A plain
stris always accepted wherever a channel is expected.
Overview#
Windows 10/11 native toast notification. |
|
macOS Notification Center. |
|
Linux desktop notification via D-Bus (GNOME, KDE, etc.). |
|
Gmail or other IMAP provider. Append |
|
Corporate SMTP with TLS. Append |
|
Slack channel. Append |
|
Microsoft Teams incoming webhook. Append |
Import detail#
from ansys.tools.common.notifications import NotificationChannel
Attribute detail#
- NotificationChannel.WINDOWS = 'windows://'#
Windows 10/11 native toast notification.
- NotificationChannel.MACOS = 'macosx://'#
macOS Notification Center.
- NotificationChannel.DBUS = 'dbus://'#
Linux desktop notification via D-Bus (GNOME, KDE, etc.).
- NotificationChannel.MAILTO = 'mailto://'#
Gmail or other IMAP provider. Append
user:pass@gmail.com.
- NotificationChannel.MAILTOS = 'mailtos://'#
Corporate SMTP with TLS. Append
user:pass@smtp.corp.com.
- NotificationChannel.SLACK = 'slack://'#
Slack channel. Append
token/channel.
- NotificationChannel.MSTEAMS = 'msteams://'#
Microsoft Teams incoming webhook. Append
A/B/C/D.