Get booth runtime

GET /api/booths/{id}/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 string Required

    id of the booth

Query parameters

  • unit string Required

    Unit of window to get the runtime

  • length numeric

    Number of units in the given units

Responses

  • OK

    Hide response attributes Show response attributes object
    • Additional properties are allowed.

      Hide current_period attributes Show current_period attributes object
    • delta object

      Additional properties are allowed.

      Hide delta attributes Show delta attributes object
    • Additional properties are allowed.

      Hide previous_period attributes Show previous_period attributes object
  • Bad request

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

  • Unauthorized

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

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"
}