Put alert rules, service levels, notifications and alert tickets on one Alert settings page, in four tabs
Old addresses (/alert-rules, /service-levels, /settings/notifications) lead to the right tab. Notifications and Alert tickets stay administrator-only. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
07ce2b0305
commit
4269213275
40 files changed
+212
-188
No files matched your search
+3
-3
@@ -6,7 +6,7 @@ here, and they are easy to mix up:
|
||||
| | **Event webhooks** | **The notification webhook** |
|
||||
|---|---|---|
|
||||
| For | **Machines**: a structured, signed JSON message per event | **People**: the same sentence a human would read, posted to a chat-style endpoint |
|
||||
| Where | **Settings → API and webhooks → Event webhooks** | **Settings → Notifications → Channels → Webhook** |
|
||||
| Where | **Settings → API and webhooks → Event webhooks** | **Alert settings → Notifications → Channels → Webhook** |
|
||||
| Sent when | An alert opens or resolves, a maintenance window starts or ends | Whenever a notification is sent to a channel (it is one of the five channels) |
|
||||
| Body | `{ event, id, createdAt, source, data }` | `{ "content": "**Title**\nmessage" }` |
|
||||
| Authenticity | `X-HLM-Signature` — an HMAC-SHA256 of the body | a shared secret in `X-Webhook-Secret` (not a signature) |
|
||||
@@ -274,7 +274,7 @@ def hook():
|
||||
|
||||
The fifth notification channel (beside Gotify, ntfy, email and push) posts each notification to a URL you give it, as the sentence a person would read — handy for chat tools that accept an incoming-webhook post.
|
||||
|
||||
**Settings → Notifications → Channels → Webhook**: switch it on, give the address, and optionally a secret.
|
||||
**Alert settings → Notifications → Channels → Webhook**: switch it on, give the address, and optionally a secret.
|
||||
|
||||
```
|
||||
POST <your address>
|
||||
@@ -294,7 +294,7 @@ X-Webhook-Secret: <the secret> (only if one is set)
|
||||
## Buttons on notifications
|
||||
|
||||
A notification can carry buttons that act on the alert it is about, from the phone's lock screen, without signing in: **Acknowledge**, **Silence for an hour** and **Snooze until tomorrow at 09:00**. An administrator switches
|
||||
it on under **Settings → Notifications → Who hears what → Buttons on notifications**; it is off until then, and off means no link works. How each channel shows them is in [NOTIFICATIONS.md](../NOTIFICATIONS.md#buttons-on-notifications).
|
||||
it on under **Alert settings → Notifications → Who hears what → Buttons on notifications**; it is off until then, and off means no link works. How each channel shows them is in [NOTIFICATIONS.md](../NOTIFICATIONS.md#buttons-on-notifications).
|
||||
|
||||
The addresses behind them, for anything that wants to build on it:
|
||||
|
||||
|
||||
Reference in new issue
Block a user