Get a cough clock (JWT)
GET/insights/clock
Get a cough clock for the requested time period
Request
Query Parameters
from date-timerequired
Default value: now()
Start point of cough clock calculation.
to date-timerequired
Default value: now()
End point of the cough clock calculation.
device_id uuid
Id of the device on which to base the calculations of. If omitted all data from all devices will be used.
Responses
- 200
- 400
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
clock object[]
Possible values: >= 24, <= 24
hour integer
Possible values: <= 23
hour of the day
count integer
count of coughs in that hour throughout the period
time_tracked_s integer
total time tracked in seconds in that hour throughout the period
{
"clock": [
{
"hour": 0,
"count": 0,
"time_tracked_s": 0
}
]
}
Not OK
- application/json
- Schema
- Example (from schema)
Schema
message string
Error message
{
"message": "string"
}
Loading...