Get historic runtime
Allows you to retrieve the requested number of time buckets between a given date range with the total minutes of runtime for each bucket.
Path parameters
-
id of the booth
Query parameters
-
ISO8601 formatted date to query data from
-
Number of data points to request
-
states string
List of comma-separated values to include in the count
-
ISO8601 formatted date to query data until
GET /api/booths/{id}/runtime_series
curl \
-X GET http://localhost:4000/api/booths/{id}/runtime_series?start=string&datapoints=string&end=string
Response examples (200)
{
"data": [
{
"time": "string",
"value": 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"
}