Incidents & Maintenance
2Incident records, maintenance windows, and event timelines.
GET/api/maintenance— List incidents
/api/maintenance— List incidentsRetrieve all maintenance and incident logs. Supports filtering by status and pagination.
Parameters
| Name | Type | Description |
|---|---|---|
status | string | Filter by status: scheduled, in_progress, completed, or cancelled |
limit | number | Maximum number of results to return |
offset | number | Number of results to skip (for pagination, default 0) |
Example response
{
"success": true,
"logs": [
{
"id": "maintenance-1710000000000",
"title": "Database Migration – EU Region",
"status": "completed",
"affectedMonitors": ["eu-api", "eu-dashboard"],
"startTime": 1710000000000,
"endTime": 1710007200000,
"events": [
{
"id": "evt-1710000000000-a1b2c",
"timestamp": 1710000000000,
"label": "Investigating",
"content": "Elevated latency detected in the EU region."
}
],
"createdAt": 1710000000000,
"updatedAt": 1710007200000
}
]
}GET/api/maintenance/:id— Get incident details
/api/maintenance/:id— Get incident detailsRetrieve a specific incident with timeline entries and current status for affected services.
Parameters
| Name | Type | Description |
|---|---|---|
idrequiredpath | string | Incident ID (e.g. maintenance-1710000000000) |
Example response
{
"success": true,
"log": {
"id": "maintenance-1710000000000",
"title": "Database Migration – EU Region",
"status": "completed",
"affectedMonitors": ["eu-api"],
"startTime": 1710000000000,
"endTime": 1710007200000,
"events": [
{
"id": "evt-1710000000000-a1b2c",
"timestamp": 1710000000000,
"label": "Investigating",
"content": "Elevated latency detected in the EU region."
},
{
"id": "evt-1710003600000-d4e5f",
"timestamp": 1710003600000,
"label": "Resolved",
"content": "Migration complete. All services operating normally."
}
],
"createdAt": 1710000000000,
"updatedAt": 1710007200000
},
"monitorDetails": {
"eu-api": {
"name": "EU API Gateway",
"status": "up",
"overallUptime": 99.95,
"lastChecked": 1710007200000
}
}
}