This chapter covers the core features and capabilities of Notification Dispatcher.
string.Template placeholders in messageslow, normal, high, critical with per-channel routingFollow this guide to get Notification Dispatcher up and running in your environment.
# Send a quick email
python src/notification_dispatcher.py --channel email \
--to user@example.com --subject "Alert" --message "Server CPU at 95%"
# Send a Slack notification
python src/notification_dispatcher.py --channel slack \
--to "#ops-alerts" --message "Deploy complete" \
--webhook-url https://hooks.example.com/services/T00/B00/xxx
# Send a webhook notification
python src/notification_dispatcher.py --channel webhook \
--to https://api.example.com/v1/alerts --message '{"event": "deploy"}'
# Batch dispatch from config
python src/notification_dispatcher.py --config examples/notifications_config.json{
"channels": {
"email": {
"smtp_host": "smtp.example.com",
"smtp_port": 587,
"smtp_user": "alerts@example.com",
"smtp_pass": "YOUR_SMTP_PASSWORD_HERE",
"from_address": "alerts@example.com"
},
"slack": {
"webhook_url": "https://hooks.example.com/services/T00/B00/YOUR_TOKEN"
},
"webhook": {
"default_url": "https://api.example.com/v1/notifications"
}
},
"notifications": [
{
"channel": "email",
"recipient": "admin@example.com",
"subject": "Daily Report",
"message": "All systems operational. Uptime: ${uptime}%.",
"priority": "normal",
"template_vars": {"uptime": "99.9"}
},
{
"channel": "slack",
"recipient": "#ops-alerts",
"message": ":white_check_mark: Deploy to production complete.",
"priority": "high"
}
]
}| Flag | Default | Description |
|---|---|---|
--config, -c | — | Config file (JSON) for batch dispatch |
--channel | — | Channel: email, slack, webhook, sms, console |
--to | — | Recipient address/URL |
--subject, -s | — | Notification subject |
--message, -m | — | Notification message body |
--priority | normal | Priority: low, normal, high, critical |
--webhook-url | — | Slack/webhook URL override |
--log-level | INFO | Logging level |
| Channel | Transport | Recipient Format |
|---|---|---|
email | SMTP | Email address |
slack | HTTP POST | Channel name or webhook URL |
webhook | HTTP POST | URL endpoint |
sms | HTTP API | Phone number (via gateway) |
console | stdout | — (prints to terminal) |
Get the full Notification Dispatcher and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.