Get facility utilization timeline
Allows you to retrieve the requested number of time buckets between a given date range with the total minutes spent on each state for each bucket, including active spray time, summed for all booths in the facility.
Path parameters
-
id of the facility
Query parameters
-
ISO8601 formatted date to query data from
-
Interval size of each data point in minutes
-
ISO8601 formatted date to query data until
GET /api/facilities/{id}/utilization_timeline
curl \
-X GET http://localhost:4000/api/facilities/{id}/utilization_timeline?start=string&interval=string&end=string
Response examples (200)
{
"data": [
{
"duration": 42.0,
"modes": [
{
"mode": "Spray Mode",
"duration": 30
}
],
"timestamp": "string"
}
]
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}