{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/worker-manager/v1/worker-pool-list-stats.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "A list of worker pools stats",
  "properties": {
    "continuationToken": {
      "description": "Opaque `continuationToken` to be given as query-string option to get the\nnext set of worker-types in the worker-manager.\nThis property is only present if another request is necessary to fetch all\nresults. In practice the next request with a `continuationToken` may not\nreturn additional results, but it can. Thus, you can only be sure to have\nall the results if you've called `listWorkerPoolsStats` with `continuationToken`\nuntil you get a result without a `continuationToken`.\n",
      "title": "Continuation Token",
      "type": "string"
    },
    "workerPoolsStats": {
      "description": "List of all worker pools stats",
      "items": {
        "additionalProperties": false,
        "properties": {
          "currentCapacity": {
            "description": "Total capacity available across all workers for this worker pool that are currently not \"stopped\"",
            "minimum": 0,
            "title": "Current Capacity",
            "type": "integer"
          },
          "requestedCapacity": {
            "description": "Total capacity available across all workers for this worker pool with state \"requested\"",
            "minimum": 0,
            "title": "Requested Worker Capacity",
            "type": "integer"
          },
          "requestedCount": {
            "description": "Total worker count in \"requested\" state for this worker pool",
            "minimum": 0,
            "title": "Requested Worker Count",
            "type": "integer"
          },
          "runningCapacity": {
            "description": "Total capacity available across all workers for this worker pool with state \"running\"",
            "minimum": 0,
            "title": "Running Worker Capacity",
            "type": "integer"
          },
          "runningCount": {
            "description": "Total worker count in \"running\" state for this worker pool",
            "minimum": 0,
            "title": "Running Worker Count",
            "type": "integer"
          },
          "stoppedCapacity": {
            "description": "Total capacity available across all workers for this worker pool with state \"stopped\"",
            "minimum": 0,
            "title": "Stopped Worker Capacity",
            "type": "integer"
          },
          "stoppedCount": {
            "description": "Total worker count in \"stopped\" state for this worker pool",
            "minimum": 0,
            "title": "Stopped Worker Count",
            "type": "integer"
          },
          "stoppingCapacity": {
            "description": "Total capacity available across all workers for this worker pool with state \"stopping\"",
            "minimum": 0,
            "title": "Stopping Worker Capacity",
            "type": "integer"
          },
          "stoppingCount": {
            "description": "Total worker count in \"stopping\" state for this worker pool",
            "minimum": 0,
            "title": "Stopping Worker Count",
            "type": "integer"
          },
          "workerPoolId": {
            "description": "The ID of this worker pool (of the form `providerId/workerType` for compatibility)\n",
            "pattern": "^[a-zA-Z0-9-_]{1,38}/[a-z]([-a-z0-9]{0,36}[a-z0-9])?$",
            "title": "Worker Pool ID",
            "type": "string"
          }
        },
        "required": [
          "workerPoolId",
          "currentCapacity",
          "requestedCount",
          "runningCount",
          "stoppingCount",
          "stoppedCount",
          "requestedCapacity",
          "runningCapacity",
          "stoppingCapacity",
          "stoppedCapacity"
        ],
        "type": "object"
      },
      "title": "Worker Pools Stats",
      "type": "array",
      "uniqueItems": true
    }
  },
  "required": [
    "workerPoolsStats"
  ],
  "title": "Worker Pool List Stats",
  "type": "object"
}