Get events v2 (JWT)
GET/events/v2
Retrieve all events associated with a user
Request
Query Parameters
Possible values: [raw, 15min, hour, day, week, month]
Possible values: [cough, heartbeat, cough_burst, cough_oasis, battery_level]
Pagination
Pagination
Possible values: [asc, desc]
Default value: asc
Order by time ascending vs descending
Comma separated name of the fields to return. All aggregations: [uid, device_id, time, metric] Raw: [utc_time, sensor, value1, value2] Non-Raw aggregation: [time_tracked_s, min[1,2], max[1,2], count, avg[1,2], sum[1,2], stddev[1,2]]
Responses
- 200
- 400
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Time at which the event happened if raw aggregation. Start of the time bucket if non-raw aggregation.
Array with a the event capturing device_id if raw aggregation. Array of all the device ids that contributed to this aggregate if non-raw aggregation.
Id of the user.
Value 1 assigned to this event upon creation.
Value 2 assigned to this event upon creation.
Sensor name/version assigned to this event upon creation.
Time zoned timestamp at which this event was created.
Possible values: [cough, heartbeat, cough_burst, cough_oasis, battery_level]
Ammount of seconds in which tracking was enabled (calculated from heartbeats) during the time bucket.
Only non-raw aggregation, count of events within time bucket.
Only non-raw aggregation, minimum of value1 within time bucket.
Only non-raw aggregation, maximum of value1 within time bucket.
Only non-raw aggregation, average of value1 within time bucket.
Only non-raw aggregation, sum of value1 within time bucket.
Only non-raw aggregation, standard deviation of value1 within time bucket.
Only non-raw aggregation, minimum of value2 within time bucket.
Only non-raw aggregation, maximum of value2 within time bucket.
Only non-raw aggregation, average of value2 within time bucket.
Only non-raw aggregation, sum of value2 within time bucket.
Only non-raw aggregation, standard deviation of value2 within time bucket.
[
{
"time": "2024-12-03T11:32:11.811Z",
"device_id": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"uid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"value1": 0,
"value2": 0,
"sensor": "string",
"utc_time": "2024-12-03T11:32:11.811Z",
"metric": "cough",
"time_tracked_s": 0,
"count": 0,
"min1": 0,
"max1": 0,
"avg1": 0,
"sum1": 0,
"stddev1": 0,
"min2": 0,
"max2": 0,
"avg2": 0,
"sum2": 0,
"stddev2": 0
}
]
Invalid input