Get derived events (group)
GET/:customer_id/groups/:group_id/users/:uid/derived-events
Get derived 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: [start_time, end_time]
Default value: start_time
Search by start or end time
Possible values: [asc, desc]
Default value: desc
Ascending or descending in time
Possible values: [uid, device_id, metric, start_time, end_time, burst_size, duration_s]
Comma separated list of fields to return
Possible values: [uid, device_id, metric, start_time, end_time, burst_size, duration_s]
Default value: start_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
Size of the burst if metric is of type burst.
Duration of the event in seconds
{
"events": [
{
"uid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"device_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"metric": "cough_burst",
"start_time": "2024-12-03T11:32:12.491Z",
"end_time": "2024-12-03T11:32:12.491Z",
"burst_size": 0,
"duration_s": 0
}
]
}
Validation error
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string",
"errors": [
null
]
}