mirror of https://github.com/docker/docker-py.git
Merge pull request #590 from docker/events_decode_doc
Added documentation for decode param on stats and events
This commit is contained in:
commit
f28e90bfab
|
|
@ -250,10 +250,10 @@ function return a blocking generator you can iterate over to retrieve events as
|
||||||
**Params**:
|
**Params**:
|
||||||
|
|
||||||
* since (datetime or int): get events from this point
|
* since (datetime or int): get events from this point
|
||||||
|
|
||||||
* until (datetime or int): get events until this point
|
* until (datetime or int): get events until this point
|
||||||
|
|
||||||
* filters (dict): filter the events by event time, container or image
|
* filters (dict): filter the events by event time, container or image
|
||||||
|
* decode (bool): If set to true, stream will be decoded into dicts on the
|
||||||
|
fly. False by default.
|
||||||
|
|
||||||
**Returns** (generator):
|
**Returns** (generator):
|
||||||
|
|
||||||
|
|
@ -812,6 +812,8 @@ This will stream statistics for a specific container.
|
||||||
**Params**:
|
**Params**:
|
||||||
|
|
||||||
* container (str): The container to start
|
* container (str): The container to start
|
||||||
|
* decode (bool): If set to true, stream will be decoded into dicts on the
|
||||||
|
fly. False by default.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
>>> from docker import Client
|
>>> from docker import Client
|
||||||
|
|
@ -914,7 +916,6 @@ If `container` a dict, the `Id` key is used.
|
||||||
<!---
|
<!---
|
||||||
TODO:
|
TODO:
|
||||||
|
|
||||||
* events
|
|
||||||
* load_image
|
* load_image
|
||||||
* resize
|
* resize
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue