get https://{url}/v1/devices//incidents
Use the hub_url and access_key received in the registration response as your base URL.
This API requires the device to authenticate, see Device Authentication.
Return Data
Array of items with the following structure:
Name | Type | Description | Model API Version |
---|---|---|---|
id | string | Unique incident ID | 1.0.1+ |
device_id | string | Device ID | 1.0.7+ |
status | string | active / closed | 1.0.1+ |
priority | string | critical / high / moderate / low / planning | 1.0.1+ |
title | string | Short incident title | 1.0.1+ |
description | string | Detailed incident description | 1.0.1+ |
issue | string | Short issue code that caused the incident | 1.0.1+ |
created_at | datetime | Creation timestamp | 1.0.1+ |
updated_at | datetime | Last update timestamp | 1.0.1+ |
Response example :
[
{
"id": "",
"device_id": "fbe103c8-...",
"status": "active",
"priority": "high",
"title": "Device offline",
"description": null,
"issue": "offline",
"created_at": "2023-06-04T12:00:52Z",
"updated_at": "2023-06-04T12:00:52Z"
},
{
"id": "",
"device_id": "fbe103c8-...",
"status": "active",
"priority": "moderate",
"title": "Temperature is too high",
"description": "Temperature is too high",
"issue": "rule_xxx-xxxx-xxx-xxxx",
"created_at": "2023-06-04T09:45:51Z",
"updated_at": "2023-06-04T09:45:51Z"
}
]