Search or ask Docker

ContainerCPUStats

ContainerCPUStats schema in Docker Engine API 1.57.

View Markdown

Schema

Type: object

CPU related info of the container
cpu_usage

Schema: ContainerCPUUsage

online_cpus

Type: integer

Number of online CPUs.

This field is Linux-specific and omitted for Windows containers.

All schema constraints and annotations
{
  "description": "Number of online CPUs.\n\nThis field is Linux-specific and omitted for Windows containers.\n",
  "example": 5,
  "format": "uint32",
  "type": "integer",
  "x-nullable": true
}
system_cpu_usage

Type: integer

System Usage.

This field is Linux-specific and omitted for Windows containers.

All schema constraints and annotations
{
  "description": "System Usage.\n\nThis field is Linux-specific and omitted for Windows containers.\n",
  "example": 5,
  "format": "uint64",
  "type": "integer",
  "x-nullable": true
}
throttling_data

Schema: ContainerThrottlingData

All schema constraints and annotations
{
  "description": "CPU related info of the container\n",
  "properties": {
    "cpu_usage": {
      "$ref": "#/components/schemas/ContainerCPUUsage"
    },
    "online_cpus": {
      "description": "Number of online CPUs.\n\nThis field is Linux-specific and omitted for Windows containers.\n",
      "example": 5,
      "format": "uint32",
      "type": "integer",
      "x-nullable": true
    },
    "system_cpu_usage": {
      "description": "System Usage.\n\nThis field is Linux-specific and omitted for Windows containers.\n",
      "example": 5,
      "format": "uint64",
      "type": "integer",
      "x-nullable": true
    },
    "throttling_data": {
      "$ref": "#/components/schemas/ContainerThrottlingData"
    }
  },
  "type": "object",
  "x-go-name": "CPUStats",
  "x-nullable": true
}