API changelog
Download source
  • JSON OpenAPI specification
  • YAML OpenAPI specification
Garmat API logo

Topics

  • Introduction
  • Authentication
  • Getting Started
  • Glossary
  • Rate Limiting
  • Troubleshooting

Endpoints

  • Accounts
    • List accounts GET
    • Create an account POST
    • Summary of accounts and booths GET
    • Get an account GET
    • Update an existing account PUT
  • Alert Types
    • List alert types GET
    • Update alert types PUT
  • Alerts
    • Get history of alerts GET
    • List alerts for a booth GET
  • API Keys
    • Delete API key DELETE
    • List API keys GET
    • Create API key POST
  • Events
    • List event notifications GET
    • Show notification detail GET
    • Show notification event definition GET
    • Update an existing event definition PUT
    • Delete an event definition DELETE
    • Update notification with allowed changes PATCH
    • List notification event definitions GET
    • Create a new event definition POST
    • Mark all user's notifications as read POST
  • Login
    • Authenticate using an API Key POST
    • Gets the user details of the user making the request GET
    • Verify a magic link token POST
    • Initiate login attempt POST
  • Booths
    • Get utilization timeline GET
    • Get modes frequency GET
    • Export booth data GET
    • Get a summary per filter type for the booth. GET
    • Get booth's latest values for tags GET
    • Get all booths' last updates GET
    • Get utilization stats GET
    • Get tag history for a booth GET
    • List booths GET
    • Get the historic log of filter maintenances for a booth. GET
    • Get booth revision history GET
    • Get utilization summary GET
    • Returns a map with filter options and their possible values GET
    • Get booth by id GET
    • Update booth PUT
    • Get historic runtime GET
    • Get booth recent stages GET
    • Get modes duration GET
    • Get booth runtime GET
    • Get booth's latest values for tags at a given timestamp GET
  • Facilities
    • Get facility utilization timeline GET
    • List facilities GET
    • Create a facility POST
    • Get frequency utilization resume of all booths in Facility GET
    • Get facility details GET
    • Update a facility PUT
    • Get facility utilization summary GET
    • Get utilization resume of all booths in Facility GET
  • Regions
    • Update a region PUT
    • Delete Region DELETE
    • List regions GET
    • Create a region POST
  • Users
    • Re-send user invitation POST
    • Submit a help form POST
    • List users GET
    • Create user POST
    • Update user PUT
    • Request a password change email POST
    • Update user invitation PUT
  • Filters
    • Get the trend of time in overuse GET
    • Get the historic log of filter maintenances for all booths in scope. GET
    • Get a timeline of utilization crossed with maintenance events information. GET
    • Get a summary of filter services per booth GET
  • PLC Provisioning
    • Create a booth provisioning data entry POST
    • Retrieve a booth's provisioning data GET
    • Update a booth's provisioning data PUT
  • Utilization
    • Get the utilization of all booths within scope GET
    • Get the bucketed utilization of all booths within scope GET
    • Get utilization trends GET
  • Reports
    • Get a cycles vs in use time report GET
Powered by Bump.sh
API changelog
Download source
  • JSON OpenAPI specification
  • YAML OpenAPI specification
Garmat API logo

Get utilization trends

GET /api/utilization/trends
Api key

Compare the time of utilization, cycles, energy, and gas usage for the requested interval vs the typical all-time stats for the same interval.

Query parameters

  • filter string

    criteria to filter by

  • start string Required

    ISO8601 formatted date marking the start of the current period

  • end string Required

    ISO8601 formatted date marking the end of the current period

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object

      Trend of utilization data

      Hide data attributes Show data attributes object
      • cycles object
        Hide cycles attribute Show cycles attribute object
        • data object

          Information about all time value, current value, and percentage of change between them.

          Hide data attributes Show data attributes object
          • all_time number

            All-time value of the requested trend.

          • current_period number

            Value of the requested trend for the current period.

          • pct_change number

            Float value with the percentual difference between current period and all-time.

      • energy_usage object
        Hide energy_usage attribute Show energy_usage attribute object
        • data object

          Information about all time value, current value, and percentage of change between them.

          Hide data attributes Show data attributes object
          • all_time number

            All-time value of the requested trend.

          • current_period number

            Value of the requested trend for the current period.

          • pct_change number

            Float value with the percentual difference between current period and all-time.

      • gas_usage object
        Hide gas_usage attribute Show gas_usage attribute object
        • data object

          Information about all time value, current value, and percentage of change between them.

          Hide data attributes Show data attributes object
          • all_time number

            All-time value of the requested trend.

          • current_period number

            Value of the requested trend for the current period.

          • pct_change number

            Float value with the percentual difference between current period and all-time.

      • median_cycles object
        Hide median_cycles attribute Show median_cycles attribute object
        • data object

          Information about all time value, current value, and percentage of change between them.

          Hide data attributes Show data attributes object
          • all_time number

            All-time value of the requested trend.

          • current_period number

            Value of the requested trend for the current period.

          • pct_change number

            Float value with the percentual difference between current period and all-time.

      • utilization_time object

        Utilization trends per mode

  • 400 application/json

    Bad Request

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

  • 401 application/json

    Unauthorized

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

GET /api/utilization/trends
curl \
 --request GET 'http://localhost:4000/api/utilization/trends?start=string&end=string' \
 --header "Authorization: $API_KEY"
Response examples (200)
{
  "data": {
    "cycles": {
      "all_time": 3,
      "pct_change": -33.333,
      "current_period": 2
    },
    "gas_usage": {
      "all_time": 10000,
      "pct_change": -25,
      "current_period": 7500
    },
    "energy_usage": {
      "all_time": 10000,
      "pct_change": 0,
      "current_period": 10000
    },
    "median_cycles": {
      "all_time": 2,
      "pct_change": 0,
      "current_period": 2
    },
    "utilization_time": {
      "Booth Off": {
        "all_time": 1000,
        "pct_change": -25,
        "current_period": 750
      },
      "Cool Down": {
        "all_time": 1000,
        "pct_change": -25,
        "current_period": 750
      },
      "Flash Mode": {
        "all_time": 1000,
        "pct_change": -25,
        "current_period": 750
      },
      "Purge Mode": {
        "all_time": 1000,
        "pct_change": -25,
        "current_period": 750
      },
      "Spray Mode": {
        "all_time": 1000,
        "pct_change": -25,
        "current_period": 750
      },
      "Bake Set Pt 1": {
        "all_time": 1000,
        "pct_change": -25,
        "current_period": 750
      },
      "Bake Set Pt 2": {
        "all_time": 1000,
        "pct_change": -25,
        "current_period": 750
      },
      "Bake Set Pt 3": {
        "all_time": 1000,
        "pct_change": -25,
        "current_period": 750
      },
      "Cycle Complete": {
        "all_time": 1000,
        "pct_change": -25,
        "current_period": 750
      },
      "Energy Conservation": {
        "all_time": 1000,
        "pct_change": -25,
        "current_period": 750
      }
    }
  }
}
Response examples (400)
{
  "error": "Error Reason"
}
Response examples (401)
{
  "error": "Error Reason"
}