Skip to main content

Incident Object

The Incident Object in the API represents an Incident in Garmingo Status.
This is equal to the Incident from the "Incidents" Tab in the Dashboard.

Properties​

The Incident Object itself has the following properties:

PropertyTypeDescriptionRequired
idstringThe unique identifier of the Incident.Yes
titlestringThe title of the Incident.Yes
descriptionstringThe description of the Incident.Yes
statusstringThe status of the Incident. Only cosmetic and shown on the Status Page.Yes
resolvedbooleanWhether the Incident is resolved.Yes
resolveWhenOnlinebooleanWhether the Incident should be resolved when all connected Monitors are online.Yes
monitorIdsstring[]List of Monitor IDs that are connected to the Incident.Yes
eventIdsstring[]List of Event IDs that are connected to the Incident.Yes
startDateWhen the Incident was started.Yes
endDateWhen the Incident was resolved.No
metadataobjectAdditional metadata of the Incident.No

Example​

{
"id": "5f4b3b3b-0b3b-4b3b-0b3b-4b3b0b3b0b3b",
"title": "My Incident",
"description": "This is a description.",
"status": "Open",
"resolved": false,
"resolveWhenOnline": true,
"monitorIds": ["5f4b3b3b-0b3b-4b3b-0b3b-4b3b0b3b0b3b"],
"eventIds": ["5f4b3b3b-0b3b-4b3b-0b3b-4b3b0b3b0b3b"],
"start": "2021-01-01T00:00:00.000Z"
}

CRUD Operation Objects​

The base type of the Incident Object is returned by the API for all READ operations.
For CREATE, UPDATE and DELETE operations, the Incident Object is stripped down to the following properties:

Create Incident Object​

PropertyTypeDescriptionRequiredDefault
titlestringThe title of the Incident.Yes
descriptionstringThe description of the Incident.NoEmpty
statusstringThe status of the Incident. Only cosmetic and shown on the Status Page.NoOpen
resolveWhenOnlinebooleanWhether the Incident should be resolved when all connected Monitors are online.Notrue
monitorIdsstring[]List of Monitor IDs that are connected to the Incident.Yes

Example​

{
"title": "My Incident",
"monitorIds": ["5f4b3b3b-0b3b-4b3b-0b3b-4b3b0b3b0b3b"]
}

Update Incident Object​

PropertyTypeDescriptionRequired
titlestringThe title of the Incident.No
descriptionstringThe description of the Incident.No
statusstringThe status of the Incident. Only cosmetic and shown on the Status Page.No
resolvedbooleanWhether the Incident is resolved.No
resolveWhenOnlinebooleanWhether the Incident should be resolved when all connected Monitors are online.No
monitorIdsstring[]List of Monitor IDs that are connected to the Incident.No
startDateWhen the Incident was started.No
endDateWhen the Incident was resolved.No

Example​

{
"displayName": "My Monitor",
"enabled": true
}