openapi: 3.0.1
servers:
  - url: https://sandbox-api.onsched.com/
info:
  description: Endpoints for system utilities. e.g.Health
  title: OnSched API Utility
  version: v1
  x-apisguru-categories:
    - collaboration
  x-logo:
    url: https://onsched.com/img/apple-touch-icon-57x57-precomposed.ico
  x-origin:
    - format: openapi
      url: https://sandbox-api.onsched.com/swagger/utility/swagger.json
      version: "3.0"
  x-providerName: onsched.com
  x-serviceName: utility
security:
  - oauth2:
      - OnSchedApi
paths:
  /utility/v1/health/heartbeat:
    get:
      responses:
        "200":
          content:
            application/json:
              schema:
                type: string
          description: Success
      tags:
        - Health
  /utility/v1/health/threadinfo:
    get:
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ThreadPoolInfo"
          description: Success
      tags:
        - Health
components:
  schemas:
    ThreadPoolInfo:
      additionalProperties: false
      properties:
        availableCompletionThreads:
          format: int32
          type: integer
        availableWorkerThreads:
          format: int32
          type: integer
        maxCompletionThreads:
          format: int32
          type: integer
        maxWorkerThreads:
          format: int32
          type: integer
        minCompletionThreads:
          format: int32
          type: integer
        minWorkerThreads:
          format: int32
          type: integer
        occupiedCompletionThreads:
          format: int32
          type: integer
        occupiedWorkerThreads:
          format: int32
          type: integer
      type: object
  securitySchemes:
    oauth2:
      flows:
        clientCredentials:
          scopes:
            OnSchedApi: Consumer and Setup Interface
            distance: Travel and Distance calculations
          tokenUrl: https://sandbox-identity.onsched.com/connect/token
      type: oauth2
