Get booth runtime
Allows you to retrieve the runtime of a booth in the given period and the immediate previous period of the same length, and the delta between them.
Path parameters
-
id of the booth
Query parameters
-
Unit of window to get the runtime
-
length numeric
Number of units in the given units
GET /api/booths/{id}/runtime
curl \
-X GET http://localhost:4000/api/booths/{id}/runtime?unit=string
Response examples (200)
{
"current_period": {
"days": 42.0,
"microsecs": 42.0,
"months": 42.0,
"secs": 42.0
},
"delta": {
"days": 42.0,
"microsecs": 42.0,
"months": 42.0,
"secs": 42.0
},
"previous_period": {
"days": 42.0,
"microsecs": 42.0,
"months": 42.0,
"secs": 42.0
}
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}