Merge pull request #10766 from cpuguy83/stats_pull_once

Allow pulling stats once and disconnecting.
This commit is contained in:
Tibor Vass
2015-05-04 22:28:01 -07:00
11 changed files with 83 additions and 10 deletions
@@ -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