Get the trend of time in overuse
Compare the time in overuse for the requested interval vs the typical all-time overuse for the same interval.
GET
/api/filters/overuse_trend
curl \
--request GET 'http://localhost:4000/api/filters/overuse_trend?start=string&end=string' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"data": {
"overuse_time": {
"all_time": 1000,
"pct_change": 25,
"current_period": 1250
},
"overuse_count": {
"all_time": 100,
"pct_change": -25,
"current_period": 75
},
"overuse_cycles": {
"all_time": 10,
"pct_change": -50,
"current_period": 5
}
}
}
Response examples (200)
{
"data": {
"overuse_time": {
"all_time": 1000,
"pct_change": 25,
"current_period": 1250
},
"overuse_count": {
"all_time": 100,
"pct_change": -25,
"current_period": 75
},
"overuse_cycles": {
"all_time": 10,
"pct_change": -50,
"current_period": 5
}
}
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}