UptimeMonitoring Examples
Copy-paste-runnable examples for every UptimeMonitoring integration.
Integrations
| Integration | Path | Description |
|---|---|---|
| cURL | curl/ | Create, list, test, and delete monitors from the command line |
| Node.js | node/ | Same lifecycle using Node 20+ native fetch, no dependencies |
| Python | python/ | Same lifecycle using requests |
| GitHub Actions | github-actions/ | Post-deploy health gate with uptimemonitoring/assert-healthy |
| MCP — Claude Code | mcp/claude-code/ | Manage monitors with natural language in Claude Code |
| MCP — Cursor | mcp/cursor/ | Manage monitors with natural language in Cursor |
| Webhooks | webhooks/ | Push notifications when a monitor goes down, recovers, or flaps |
Placeholder convention
All examples use placeholders — replace them with your own values before running:
| Placeholder | Replace with |
|---|---|
UPTIMEMONITORING_API_KEY | Your API key — set as an environment variable, never hardcode it |
umk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | Your actual API key from Settings → API Keys |
123 | Your monitor's numeric ID (visible in the dashboard URL) |
whs_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | The HMAC signing secret returned when you set a webhook |
Never commit a real key to version control.
Coming in Phase 2
terraform/— provision and manage monitors as infrastructurekubernetes/— liveness/readiness gate via assert-healthy in a pod lifecycle hookpagerduty-integration/— route monitor alerts to PagerDuty incidents