Skip to main content
Version: 1.3

Notification methods

Route: /notifications-methods

A method defines how messages are sent (SMTP server, Telegram bot token, etc.). Rules only reference an existing method; they do not duplicate channel credentials.

See also: Overview · Notification rules

Types available in the UI​

TypeUI statusNotes
EmailEnabledSMTP + test send
TelegramEnabledBot token + default chat ID + test

The Type dropdown currently only lists Email and Telegram — other channel types (WhatsApp, REST API, custom scripts) are not offered.

Create a method​

  1. Open Management → Notification methods (/notifications-methods).
  2. Optionally click Refresh in the page header to reload the list.
  3. Click Create notification method (or the empty dashed card when the list is empty).
  4. Fill in Name, Type, and Status (enabled/disabled toggle).
  5. Complete type-specific configuration (see below). Configuration fields appear after you choose a type.
  6. Optional: Test notification.
  7. Save (Create / Update).

Methods are shown as cards in a responsive grid (not a data table), one per method:

ElementDescription
IconBrand icon for the method type
NameMethod name, with type in parentheses
StatusActive / inactive chip
Edit / DeletePer-card actions (with permission)
View configuration rawOpens JSON with masked passwords

Use Search notification methods... to filter. Pagination (Total, page size 12/24/48) sits below the grid. There is no bulk-action bar — actions are per card.

Notification methods list — Create notification method

Email​

The Email method delivers alerts to users’ inboxes. Subject and body can be customized further in notification rules using templates.

Configuration fields​

FieldDescription
SMTP HostOutbound mail server
SMTP PortPort (e.g. 587)
Enable SSLSSL encryption
Use Start TLSSTARTTLS
Username / PasswordSMTP credentials
StatusWhether the method is enabled

Setup steps​

  1. Click Create notification method.
  2. Set a name and select Email.
  3. Fill SMTP settings.
  4. Optional: enter a test email and click Test notification.
  5. Save.

Use Test notification to verify delivery before you rely on this method in production.

Create notification method — Email type

Telegram​

The Telegram method sends alerts via a bot. Suitable for team channels and on-call chat.

Configuration fields​

FieldDescription
Bot TokenToken from @BotFather
Default chat IDDefault user or channel chat ID

Setup steps​

  1. Create a bot with @BotFather on Telegram.
  2. Copy the bot token into the form.
  3. Start a chat with the bot and send a message to obtain the chat ID.
  4. Optional: Test notification.
  5. Save.

Create notification method — Telegram type

Message configuration (Telegram)​

On the method or on a rule, enable Message Configuration to override the default test message:

OptionDescription
Message FormatHTML or Markdown (default: HTML)
Use TemplatePick a template
Custom MessageFree-text body with %fieldName% placeholders

When HTML is selected, use Telegram HTML markup — not arbitrary HTML.

Telegram rule — HTML custom message

Telegram HTML markup​

Telegram HTML format uses a custom markup subset, not full HTML. ToBeAlert passes the message to Telegram with parse mode HTML; unsupported tags may be stripped or cause delivery errors.

TagEffect
<b>, <strong>Bold
<i>, <em>Italic
<u>, <ins>Underline
<s>, <strike>, <del>Strikethrough
<tg-spoiler>, <span class="tg-spoiler">Spoiler
<a href="URL">text</a>Link
<code>Inline code
<pre>Code block
<pre><code class="language-python">Syntax-highlighted block
Templates and Telegram

Notification templates support rich HTML for email. The template Preview pane renders standard HTML. When the same template is sent through Telegram with Message Format → HTML, only the tags above are honored. For rich email layout and simple Telegram text, maintain separate templates or use Custom Message with Telegram-safe markup.

Example custom message (HTML format):

<b>Alert:</b> %resource% — %event%
<i>Severity:</i> %severity%
<a href="%href%">Open in ToBeAlert</a>

For Markdown format, use Telegram Markdown instead (for example *bold*, _italic_, [link](url)).

Other channel types​

Only Email and Telegram are available today; other channel types (WhatsApp, REST API, custom scripts) do not appear in the Type dropdown.

Best practices​

  1. Choose channels by urgency — instant messaging for critical alerts; email for less time-sensitive traffic.
  2. Avoid overload — limit who receives notifications to reduce alert fatigue.
  3. Test during setup and after credential changes.
  4. Use fallback methods where possible (e.g. email + Telegram).
  5. Reuse one method per environment instead of duplicating SMTP settings on every rule.