Get utilization resume of all booths in Facility
Returns a list of objects with the summed utilization for each mode for all booths associated to the given Facility.
Path parameters
-
id of the facility
Query parameters
-
an ISO8601 formatted date to query data from
-
an ISO8601 formatted date to query data until
GET /api/facilities/{id}/utilization
curl \
-X GET http://localhost:4000/api/facilities/{id}/utilization?from=string&to=string
Response examples (200)
{
"mode": "Spray Mode",
"duration": 5.0,
"percentage": 55.0
}
Response examples (200)
{
"mode": "Spray Mode",
"duration": 5.0,
"percentage": 55.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"
}