mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 23:38:24 +00:00
Merge pull request #10766 from cpuguy83/stats_pull_once
Allow pulling stats once and disconnecting.
This commit is contained in:
@@ -46,6 +46,11 @@ You can still call an old version of the API using
|
||||
|
||||
### What's new
|
||||
|
||||
`GET /containers/(id)/stats`
|
||||
|
||||
**New!**
|
||||
You can now supply a `stream` bool to get only one set of stats and
|
||||
disconnect
|
||||
|
||||
## v1.18
|
||||
|
||||
|
||||
@@ -647,6 +647,10 @@ This endpoint returns a live stream of a container's resource usage statistics.
|
||||
}
|
||||
}
|
||||
|
||||
Query Parameters:
|
||||
|
||||
- **stream** – 1/True/true or 0/False/false, pull stats once then disconnect. Default true
|
||||
|
||||
Status Codes:
|
||||
|
||||
- **200** – no error
|
||||
|
||||
Reference in New Issue
Block a user