Get utilization trends
Compare the time of utilization, cycles, energy, and gas usage for the requested interval vs the typical all-time stats for the same interval.
GET
/api/utilization/trends
curl \
--request GET 'http://localhost:4000/api/utilization/trends?start=string&end=string' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"data": {
"cycles": {
"all_time": 3,
"pct_change": -33.333,
"current_period": 2
},
"gas_usage": {
"all_time": 10000,
"pct_change": -25,
"current_period": 7500
},
"energy_usage": {
"all_time": 10000,
"pct_change": 0,
"current_period": 10000
},
"utilization_time": {
"all_time": 1000,
"pct_change": -25,
"current_period": 750
}
}
}
Response examples (200)
{
"data": {
"cycles": {
"all_time": 3,
"pct_change": -33.333,
"current_period": 2
},
"gas_usage": {
"all_time": 10000,
"pct_change": -25,
"current_period": 7500
},
"energy_usage": {
"all_time": 10000,
"pct_change": 0,
"current_period": 10000
},
"utilization_time": {
"all_time": 1000,
"pct_change": -25,
"current_period": 750
}
}
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}