{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/worker-manager/v1/worker-pool-stats.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Statistics for a worker pool, showing counts and capacities of workers in different states,\nbroken down by launch configuration.\n",
  "properties": {
    "launchConfigStats": {
      "description": "Statistics broken down by launch configuration",
      "items": {
        "additionalProperties": false,
        "properties": {
          "currentCapacity": {
            "description": "Total capacity available across all workers for this launch configuration that are currently not \"stopped\"",
            "minimum": 0,
            "title": "Current Capacity",
            "type": "integer"
          },
          "launchConfigId": {
            "description": "The ID of the launch configuration",
            "title": "Launch Configuration ID",
            "type": "string"
          },
          "requestedCapacity": {
            "description": "Total capacity available across all workers for this launch configuration with state \"requested\"",
            "minimum": 0,
            "title": "Requested Worker Capacity",
            "type": "integer"
          },
          "requestedCount": {
            "description": "Total worker count in \"requested\" state for this launch configuration",
            "minimum": 0,
            "title": "Requested Worker Count",
            "type": "integer"
          },
          "runningCapacity": {
            "description": "Total capacity available across all workers for this launch configuration with state \"running\"",
            "minimum": 0,
            "title": "Running Worker Capacity",
            "type": "integer"
          },
          "runningCount": {
            "description": "Total worker count in \"running\" state for this launch configuration",
            "minimum": 0,
            "title": "Running Worker Count",
            "type": "integer"
          },
          "stoppedCapacity": {
            "description": "Total capacity available across all workers for this launch configuration with state \"stopped\"",
            "minimum": 0,
            "title": "Stopped Worker Capacity",
            "type": "integer"
          },
          "stoppedCount": {
            "description": "Total worker count in \"stopped\" state for this launch configuration",
            "minimum": 0,
            "title": "Stopped Worker Count",
            "type": "integer"
          },
          "stoppingCapacity": {
            "description": "Total capacity available across all workers for this launch configuration with state \"stopping\"",
            "minimum": 0,
            "title": "Stopping Worker Capacity",
            "type": "integer"
          },
          "stoppingCount": {
            "description": "Total worker count in \"stopping\" state for this launch configuration",
            "minimum": 0,
            "title": "Stopping Worker Count",
            "type": "integer"
          },
          "workerPoolId": {
            "description": "The ID of this worker pool\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",
          "launchConfigId",
          "currentCapacity",
          "requestedCapacity",
          "runningCapacity",
          "stoppingCapacity",
          "stoppedCapacity",
          "requestedCount",
          "runningCount",
          "stoppingCount",
          "stoppedCount"
        ],
        "type": "object"
      },
      "title": "Launch Configuration Statistics",
      "type": "array"
    }
  },
  "required": [
    "launchConfigStats"
  ],
  "title": "Worker Pool Statistics",
  "type": "object"
}