Get cough trend
GET/:customer_id/users/:uid/insights/trend
Get the cough trend at a point in time
Request
Path Parameters
customer_id Customer Idrequired
Id of the tenant
uid uuidrequired
Id of the user
Query Parameters
date date-time
Default value: 2024-12-03T11:29:46.198896Z
Date around which the trend is calculated.
device_id uuid
Id of the device to use, if omitted calculated across all devices.
granularity Granularity
Possible values: [day, week, month]
Default value: day
Compare day to day, or week to week, etc...
metric any
Metric to use.
Responses
- 200
- 400
Successful response
- application/json
- Schema
- Example (from schema)
Schema
pvalue Pvaluerequired
Calculated p-value from a Kruskal-Wallis test
angle Anglerequired
Trend inclination
direction Directionrequired
Possible values: [up, down]
Trend going 'up' or 'down'
{
"pvalue": 0,
"angle": 0,
"direction": "up"
}
Validation error
- application/json
- Schema
- Example (from schema)
Schema
message Messagerequired
errors undefined[]nullablerequired
{
"message": "string",
"errors": [
null
]
}
Loading...