You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-17Lines changed: 41 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -300,27 +300,17 @@ updo aws destroy --regions all
300
300
301
301
## Webhook Notifications
302
302
303
-
Updo can send webhook notifications when targets go up or down. This enables integration with various services like Slack, Discord, PagerDuty, or custom alerting systems.
303
+
Updo can send webhook notifications when targets go up or down. Updo **automatically detects** Slack and Discord webhooks by URL pattern and formats messages accordingly with rich formatting. Custom webhooks receive a generic JSON payload.
304
304
305
-
### Webhook Payload
305
+
### Supported Platforms
306
306
307
-
When a target status changes, Updo sends a JSON payload:
308
-
309
-
```json
310
-
{
311
-
"event": "target_down", // or "target_up"
312
-
"target": "Critical API",
313
-
"url": "https://api.example.com",
314
-
"timestamp": "2024-01-01T12:00:00Z",
315
-
"response_time_ms": 1500,
316
-
"status_code": 500,
317
-
"error": "Internal Server Error"// only for down events
318
-
}
319
-
```
307
+
-**Slack** - Auto-detected via `hooks.slack.com` URL, sends rich messages with attachments and color coding
308
+
-**Discord** - Auto-detected via `discord.com/api/webhooks` URL, sends embeds with color and structured fields
309
+
-**Custom** - Any other webhook URL receives generic JSON format
0 commit comments