diff --git a/api/swagger.yaml b/api/swagger.yaml index cf7043d336..a21d345704 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -5095,9 +5095,9 @@ paths: This endpoint returns a live stream of a container’s resource usage statistics. - The `precpu_stats` is the CPU statistic of last read, which is used - for calculating the CPU usage percentage. It is not the same as the - `cpu_stats` field. + The `precpu_stats` is the CPU statistic of the *previous* read, and is + used to calculate the CPU usage percentage. It is not an exact copy + of the `cpu_stats` field. If either `precpu_stats.online_cpus` or `cpu_stats.online_cpus` is nil then for compatibility with older daemons the length of the diff --git a/docs/api/v1.19.md b/docs/api/v1.19.md index 448fe832ef..f3d44555a5 100644 --- a/docs/api/v1.19.md +++ b/docs/api/v1.19.md @@ -739,7 +739,7 @@ This endpoint returns a live stream of a container's resource usage statistics. } } -The `precpu_stats` is the cpu statistic of last read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. +The `precpu_stats` is the cpu statistic of *previous* read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. **Query parameters**: diff --git a/docs/api/v1.20.md b/docs/api/v1.20.md index b971bab4be..199428121b 100644 --- a/docs/api/v1.20.md +++ b/docs/api/v1.20.md @@ -748,7 +748,7 @@ This endpoint returns a live stream of a container's resource usage statistics. } } -The `precpu_stats` is the cpu statistic of last read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. +The `precpu_stats` is the cpu statistic of *previous* read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. **Query parameters**: diff --git a/docs/api/v1.21.md b/docs/api/v1.21.md index 2971d25c45..3ecfd3b9f9 100644 --- a/docs/api/v1.21.md +++ b/docs/api/v1.21.md @@ -829,7 +829,7 @@ This endpoint returns a live stream of a container's resource usage statistics. } } -The `precpu_stats` is the cpu statistic of last read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. +The `precpu_stats` is the cpu statistic of *previous* read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. **Query parameters**: diff --git a/docs/api/v1.22.md b/docs/api/v1.22.md index a51fbcb7de..fc19c9f0af 100644 --- a/docs/api/v1.22.md +++ b/docs/api/v1.22.md @@ -957,7 +957,7 @@ This endpoint returns a live stream of a container's resource usage statistics. } } -The `precpu_stats` is the cpu statistic of last read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. +The `precpu_stats` is the cpu statistic of *previous* read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. **Query parameters**: diff --git a/docs/api/v1.23.md b/docs/api/v1.23.md index 677dcab789..218734aea6 100644 --- a/docs/api/v1.23.md +++ b/docs/api/v1.23.md @@ -986,7 +986,7 @@ This endpoint returns a live stream of a container's resource usage statistics. } } -The `precpu_stats` is the cpu statistic of last read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. +The `precpu_stats` is the cpu statistic of *previous* read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. **Query parameters**: diff --git a/docs/api/v1.24.md b/docs/api/v1.24.md index a32325e2d9..e320020ed6 100644 --- a/docs/api/v1.24.md +++ b/docs/api/v1.24.md @@ -1036,7 +1036,7 @@ This endpoint returns a live stream of a container's resource usage statistics. } } -The `precpu_stats` is the cpu statistic of last read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. +The `precpu_stats` is the cpu statistic of *previous* read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. **Query parameters**: