List Events
GET {{baseUrl}}/devices/:deviceId/events?page[cursor]=<string>&filter[timestamp][to]=<string>&filter[timestamp][from]=<string>
List Event (including Alerts)
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
page[cursor] | string | Cursor representing which page to fetch | |
filter[timestamp][to] | string | Only return items were 'timestamp' is less than to the specificed RFC3339 value, i.e. to-time. Default is now -time. | |
filter[timestamp][from] | string |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"links":{"self":"/partitions/b2ae267d-1d74-4e2a-bff8-e7c90a3b854a/devices/7026ab05-2d02-47b4-bc26-c033939d5823/events","next":"/partitions/b2ae267d-1d74-4e2a-bff8-e7c90a3b854a/devices/7026ab05-2d02-47b4-bc26-c033939d5823/events?page[cursor]=qwerty"},"data":[{"type":"Event","id":"1bcaafc3-d4d3-43e1-ab64-89d8518d5951","attributes":{"eventType":"ALARM","panelAddress":"laborum commodo","message":"The filter is clogged","address":"1/2/11","timestamp":"2023-04-28T12:31:11.329683036Z","state":"Active"},"meta":{"createdAt":"1963-05-01T00:48:29.886Z","updatedAt":"1999-11-07T18:24:18.194Z"}},{"type":"Event","id":"1bcaafc3-d4d3-43e1-ab64-89d8518d5951","attributes":{"eventType":"ALARM","panelAddress":"culpa Excepteur incididunt irure","message":"The filter is clogged","address":"1/2/11","timestamp":"2023-04-28T12:31:11.329683036Z","state":"Active"},"meta":{"createdAt":"2016-04-02T02:40:30.469Z","updatedAt":"1962-05-16T17:33:29.374Z"}}]}