Endpoint:
GET /v1/:page_id/outages?page=:page&per_page=:per_page
Example response:
[{"id": "ckoutage1","from": "2020-09-12T03:38:47.998Z","to": "2020-09-12T04:38:47.998Z","status": "PARTIALOUTAGE","visibilityState": "PUBLISHED","createdAt": "2020-09-12T03:38:47.998Z","updatedAt": "2020-09-12T03:40:47.998Z","component": {"id": "ckf01fvnxywz50a35nh1qzssm","name": "Website"},"incident": {"id": "ckf01m59ueaqb0a32wrljz1yd","name": "Rocket is going down","createdByType": "USER","status": "INVESTIGATING"}}]
Endpoint:
GET /v1/:page_id/outages/:outage_id
Example response:
{"id": "ckoutage1","from": "2020-09-12T03:38:47.998Z","to": "2020-09-12T04:38:47.998Z","status": "PARTIALOUTAGE","visibilityState": "PUBLISHED","createdAt": "2020-09-12T03:38:47.998Z","updatedAt": "2020-09-12T03:40:47.998Z","component": {"id": "ckf01fvnxywz50a35nh1qzssm","name": "Website"},"incident": {"id": "ckf01m59ueaqb0a32wrljz1yd","name": "Rocket is going down","createdByType": "USER","status": "INVESTIGATING"}}
Endpoint:
POST /v1/:page_id/outages
Example request:
{"componentId": "ckf01fvnxywz50a35nh1qzssm","status": "PARTIALOUTAGE","from": "2020-09-12 03:38:47.998","to": "2020-09-12 04:38:47.998","visibilityState": "PUBLISHED"}
Example response:
{"id": "ckoutage1","from": "2020-09-12T03:38:47.998Z","to": "2020-09-12T04:38:47.998Z","status": "PARTIALOUTAGE","visibilityState": "PUBLISHED","createdAt": "2020-09-12T03:38:47.998Z","updatedAt": "2020-09-12T03:40:47.998Z","component": {"id": "ckf01fvnxywz50a35nh1qzssm","name": "Website"},"incident": null}
Endpoint:
PUT /v1/:page_id/outages/:outage_id
Example request:
{"status": "MAJOROUTAGE","to": "2020-09-12 05:38:47.998"}
Example response:
{"id": "ckoutage1","from": "2020-09-12T03:38:47.998Z","to": "2020-09-12T05:38:47.998Z","status": "MAJOROUTAGE","visibilityState": "PUBLISHED","createdAt": "2020-09-12T03:38:47.998Z","updatedAt": "2020-09-12T04:40:47.998Z","component": {"id": "ckf01fvnxywz50a35nh1qzssm","name": "Website"},"incident": null}
Endpoint:
DELETE /v1/:page_id/outages/:outage_id
Example response:
HTTP 204 No Content