Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions node/alerts-to-chat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Posts every firing and resolved monitor alert to Slack, Discord, Microsoft Teams

## 🧰 Usage

### Event: `monitors.*.alerts.*.create`, `monitors.*.alerts.*.update`
### Event: `monitors.*.alerts.*.create`, `monitors.*.alerts.*.update.status`

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.

Expand All @@ -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` |
| 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.status` |
| Timeout (Seconds) | 15 |

## 🔒 Environment Variables

Expand Down
4 changes: 2 additions & 2 deletions node/uptime-incident-log/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
### Event: `monitors.*.alerts.*.create`, `monitors.*.alerts.*.update.status`

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:

Expand Down Expand Up @@ -42,7 +42,7 @@ Sample `200` Response:
| Entrypoint | `src/main.js` |
| Build Commands | `npm install` |
| Permissions | None |
| Events | `monitors.*.alerts.*.create`, `monitors.*.alerts.*.update` |
| Events | `monitors.*.alerts.*.create`, `monitors.*.alerts.*.update.status` |
| Timeout (Seconds) | 15 |
| Scopes | `databases.read`, `databases.write`, `tables.read`, `tables.write`, `rows.read`, `rows.write`, `topics.read`, `messages.write` |

Expand Down
Loading