Uptime Monitor Plugin¶
Overview¶
The Uptime Monitor plugin checks URLs and hosts at regular intervals and sends alerts when services go down.
Plugin ID: uptime
All endpoints require superuser.
Monitors¶
# List monitors
GET /api/uptime/monitors
# Create monitor
POST /api/uptime/monitors
{
"name": "Main Website",
"type": "http",
"url": "https://example.com",
"interval": 60,
"timeout": 10,
"expected_status": 200
}
# Update monitor
PUT /api/uptime/monitors/:id
# Delete monitor
DELETE /api/uptime/monitors/:id
# Enable/disable monitor
POST /api/uptime/monitors/:id/toggle
# Force check now
POST /api/uptime/monitors/:id/check
Monitor types: http, https, ping, tcp
History¶
Returns uptime percentage and response time history.
Status Dashboard¶
Returns aggregated uptime status for all monitors.