Get cough trend (JWT)
GET/insights/trend
Get the cough trend at a point in time
Request
Query Parameters
date date-time
Date around which the trend is calculated. Defaults to now.
device_id uuid
Id of the device on which to base the calculations of. If omitted all data from all devices will be used.
granularity string
Possible values: [day, week, month]
Default value: day
Compare day to day, or week to week, etc...
Responses
- 200
- 400
OK
- application/json
- Schema
- Example (from schema)
Schema
pvalue float
Calculated p-value from a Kruskal-Wallis test
angle float
Trend inclination
direction string
Trend going 'up' or 'down'
{
"pvalue": 0,
"angle": 0,
"direction": "string"
}
Not OK
- application/json
- Schema
- Example (from schema)
Schema
message string
Error message
{
"message": "string"
}
Loading...