From c661d0df64701946d96168f8d82558fdb906b8e0 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 26 Nov 2026 11:33:50 +0000 Subject: [PATCH] docs(alerts): subscribe alert templates to update --- node/alerts-to-chat/README.md | 18 +++++++++--------- node/uptime-incident-log/README.md | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/node/alerts-to-chat/README.md b/node/alerts-to-chat/README.md index 6d778dd1..46b9ac81 100644 --- a/node/alerts-to-chat/README.md +++ b/node/alerts-to-chat/README.md @@ -4,7 +4,7 @@ Posts every firing and resolved monitor alert to Slack, Discord, Microsoft Teams ## 🧰 Usage -### Event: `monitors.*.alerts.*.create`, `monitors.*.alerts.*.update.status` +### Event: `monitors.*.alerts.*.create`, `monitors.*.alerts.*.update` Receives the alert as the event payload, formats it for the chat app behind `CHAT_WEBHOOK_URL` and posts it. Usage alerts show the metric, value, threshold and peak; uptime alerts show the check and what it found. A resolved alert is a new message with how long it fired. @@ -26,14 +26,14 @@ Sample `502` Response, when the chat app refuses the message: ## ⚙️ Configuration -| Setting | Value | -| ----------------- | ----------------------------------------------------------------- | -| Runtime | Node (18.0) | -| Entrypoint | `src/main.js` | -| Build Commands | `npm install` | -| Permissions | None | -| Events | `monitors.*.alerts.*.create`, `monitors.*.alerts.*.update.status` | -| Timeout (Seconds) | 15 | +| Setting | Value | +| ----------------- | ---------------------------------------------------------- | +| Runtime | Node (18.0) | +| Entrypoint | `src/main.js` | +| Build Commands | `npm install` | +| Permissions | None | +| Events | `monitors.*.alerts.*.create`, `monitors.*.alerts.*.update` | +| Timeout (Seconds) | 15 | ## 🔒 Environment Variables diff --git a/node/uptime-incident-log/README.md b/node/uptime-incident-log/README.md index 00d33992..29ba355c 100644 --- a/node/uptime-incident-log/README.md +++ b/node/uptime-incident-log/README.md @@ -4,7 +4,7 @@ Turns uptime monitor alerts (HTTP, DNS, TCP and SMTP checks) into incident rows ## 🧰 Usage -### Event: `monitors.*.alerts.*.create`, `monitors.*.alerts.*.update.status` +### Event: `monitors.*.alerts.*.create`, `monitors.*.alerts.*.update` On the first alert, the template creates the `status` database and its `incidents` table. Then it keeps one row per alert, under the alert's ID: @@ -42,7 +42,7 @@ Sample `200` Response: | Entrypoint | `src/main.js` | | Build Commands | `npm install` | | Permissions | None | -| Events | `monitors.*.alerts.*.create`, `monitors.*.alerts.*.update.status` | +| Events | `monitors.*.alerts.*.create`, `monitors.*.alerts.*.update` | | Timeout (Seconds) | 15 | | Scopes | `databases.read`, `databases.write`, `tables.read`, `tables.write`, `rows.read`, `rows.write`, `topics.read`, `messages.write` |