Get raw events (group)
GET/:customer_id/groups/:group_id/users/:uid/events
Get events for a user in a group
Request
Path Parameters
Id of the tenant
Id of the group
Id of the user
Query Parameters
Possible values: <= 1000
Default value: 100
Pagination. Max number of entries returned.
Pagination. Offset.
Id of the device to use, if omitted calculated across all devices.
Metric fetched
Start time, timestamp with tz
End time, timestamp with tz
Possible values: [asc, desc]
Default value: desc
Ascending or descending in time
Possible values: [uid, device_id, metric, time, utc_time, sensor, value1, value2]
List fields to return
Possible values: [uid, device_id, metric, time, utc_time, sensor, value1, value2]
Default value: time
Field to order by
Responses
- 200
- 400
Successful response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
events object[]required
Id of the user
Id of the device
Local time (for the user) at which the event happened
Utc time at which the event happened
Name of the sensor which captured the event
First value associated to the event. The meaning of the value depends on the metric type.
Second value associated to the event. The meaning of the value depends on the metric type.
{
"events": [
{
"uid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"device_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"metric": "cough",
"time": "2024-12-03T11:32:12.480Z",
"utc_time": "2024-12-03T11:32:12.480Z",
"sensor": "string",
"value1": 0,
"value2": 0
}
]
}
Validation error
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string",
"errors": [
null
]
}