update API example response for docker events
the events API was rewritten in 723be0a332
,
but the example response in the documentation doesn't reflect the actual output
this fixes the example response
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
24a8de2b60
commit
3932d46a78
3 changed files with 451 additions and 126 deletions
|
@ -2359,49 +2359,157 @@ Docker networks report the following events:
|
|||
|
||||
HTTP/1.1 200 OK
|
||||
Content-Type: application/json
|
||||
Server: Docker/1.10.0 (linux)
|
||||
Date: Fri, 29 Apr 2016 15:18:06 GMT
|
||||
Transfer-Encoding: chunked
|
||||
|
||||
[
|
||||
{
|
||||
"action": "pull",
|
||||
"type": "image",
|
||||
"actor": {
|
||||
"id": "busybox:latest",
|
||||
"attributes": {}
|
||||
}
|
||||
"time": 1442421700,
|
||||
"timeNano": 1442421700598988358
|
||||
},
|
||||
{
|
||||
"action": "create",
|
||||
"type": "container",
|
||||
"actor": {
|
||||
"id": "5745704abe9caa5",
|
||||
"attributes": {"image": "busybox"}
|
||||
}
|
||||
"time": 1442421716,
|
||||
"timeNano": 1442421716853979870
|
||||
},
|
||||
{
|
||||
"action": "attach",
|
||||
"type": "container",
|
||||
"actor": {
|
||||
"id": "5745704abe9caa5",
|
||||
"attributes": {"image": "busybox"}
|
||||
}
|
||||
"time": 1442421716,
|
||||
"timeNano": 1442421716894759198
|
||||
},
|
||||
{
|
||||
"action": "start",
|
||||
"type": "container",
|
||||
"actor": {
|
||||
"id": "5745704abe9caa5",
|
||||
"attributes": {"image": "busybox"}
|
||||
}
|
||||
"time": 1442421716,
|
||||
"timeNano": 1442421716983607193
|
||||
}
|
||||
]
|
||||
{
|
||||
"status": "pull",
|
||||
"id": "alpine:latest",
|
||||
"Type": "image",
|
||||
"Action": "pull",
|
||||
"Actor": {
|
||||
"ID": "alpine:latest",
|
||||
"Attributes": {
|
||||
"name": "alpine"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101301854122
|
||||
}
|
||||
{
|
||||
"status": "create",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "create",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101381709551
|
||||
}
|
||||
{
|
||||
"status": "attach",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "attach",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101383858412
|
||||
}
|
||||
{
|
||||
"Type": "network",
|
||||
"Action": "connect",
|
||||
"Actor": {
|
||||
"ID": "7dc8ac97d5d29ef6c31b6052f3938c1e8f2749abbd17d1bd1febf2608db1b474",
|
||||
"Attributes": {
|
||||
"container": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"name": "bridge",
|
||||
"type": "bridge"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101394865557
|
||||
}
|
||||
{
|
||||
"status": "start",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "start",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101607533796
|
||||
}
|
||||
{
|
||||
"status": "resize",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "resize",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"height": "46",
|
||||
"image": "alpine",
|
||||
"name": "my-container",
|
||||
"width": "204"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101610269268
|
||||
}
|
||||
{
|
||||
"status": "die",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "die",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"exitCode": "0",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943105,
|
||||
"timeNano": 1461943105079144137
|
||||
}
|
||||
{
|
||||
"Type": "network",
|
||||
"Action": "disconnect",
|
||||
"Actor": {
|
||||
"ID": "7dc8ac97d5d29ef6c31b6052f3938c1e8f2749abbd17d1bd1febf2608db1b474",
|
||||
"Attributes": {
|
||||
"container": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"name": "bridge",
|
||||
"type": "bridge"
|
||||
}
|
||||
},
|
||||
"time": 1461943105,
|
||||
"timeNano": 1461943105230860245
|
||||
}
|
||||
{
|
||||
"status": "destroy",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "destroy",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943105,
|
||||
"timeNano": 1461943105338056026
|
||||
}
|
||||
|
||||
Query Parameters:
|
||||
|
||||
|
|
|
@ -2404,49 +2404,158 @@ Docker networks report the following events:
|
|||
|
||||
HTTP/1.1 200 OK
|
||||
Content-Type: application/json
|
||||
Server: Docker/1.11.0 (linux)
|
||||
Date: Fri, 29 Apr 2016 15:18:06 GMT
|
||||
Transfer-Encoding: chunked
|
||||
|
||||
{
|
||||
"status": "pull",
|
||||
"id": "alpine:latest",
|
||||
"Type": "image",
|
||||
"Action": "pull",
|
||||
"Actor": {
|
||||
"ID": "alpine:latest",
|
||||
"Attributes": {
|
||||
"name": "alpine"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101301854122
|
||||
}
|
||||
{
|
||||
"status": "create",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "create",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101381709551
|
||||
}
|
||||
{
|
||||
"status": "attach",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "attach",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101383858412
|
||||
}
|
||||
{
|
||||
"Type": "network",
|
||||
"Action": "connect",
|
||||
"Actor": {
|
||||
"ID": "7dc8ac97d5d29ef6c31b6052f3938c1e8f2749abbd17d1bd1febf2608db1b474",
|
||||
"Attributes": {
|
||||
"container": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"name": "bridge",
|
||||
"type": "bridge"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101394865557
|
||||
}
|
||||
{
|
||||
"status": "start",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "start",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101607533796
|
||||
}
|
||||
{
|
||||
"status": "resize",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "resize",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"height": "46",
|
||||
"image": "alpine",
|
||||
"name": "my-container",
|
||||
"width": "204"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101610269268
|
||||
}
|
||||
{
|
||||
"status": "die",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "die",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"exitCode": "0",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943105,
|
||||
"timeNano": 1461943105079144137
|
||||
}
|
||||
{
|
||||
"Type": "network",
|
||||
"Action": "disconnect",
|
||||
"Actor": {
|
||||
"ID": "7dc8ac97d5d29ef6c31b6052f3938c1e8f2749abbd17d1bd1febf2608db1b474",
|
||||
"Attributes": {
|
||||
"container": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"name": "bridge",
|
||||
"type": "bridge"
|
||||
}
|
||||
},
|
||||
"time": 1461943105,
|
||||
"timeNano": 1461943105230860245
|
||||
}
|
||||
{
|
||||
"status": "destroy",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "destroy",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943105,
|
||||
"timeNano": 1461943105338056026
|
||||
}
|
||||
|
||||
[
|
||||
{
|
||||
"action": "pull",
|
||||
"type": "image",
|
||||
"actor": {
|
||||
"id": "busybox:latest",
|
||||
"attributes": {}
|
||||
}
|
||||
"time": 1442421700,
|
||||
"timeNano": 1442421700598988358
|
||||
},
|
||||
{
|
||||
"action": "create",
|
||||
"type": "container",
|
||||
"actor": {
|
||||
"id": "5745704abe9caa5",
|
||||
"attributes": {"image": "busybox"}
|
||||
}
|
||||
"time": 1442421716,
|
||||
"timeNano": 1442421716853979870
|
||||
},
|
||||
{
|
||||
"action": "attach",
|
||||
"type": "container",
|
||||
"actor": {
|
||||
"id": "5745704abe9caa5",
|
||||
"attributes": {"image": "busybox"}
|
||||
}
|
||||
"time": 1442421716,
|
||||
"timeNano": 1442421716894759198
|
||||
},
|
||||
{
|
||||
"action": "start",
|
||||
"type": "container",
|
||||
"actor": {
|
||||
"id": "5745704abe9caa5",
|
||||
"attributes": {"image": "busybox"}
|
||||
}
|
||||
"time": 1442421716,
|
||||
"timeNano": 1442421716983607193
|
||||
}
|
||||
]
|
||||
|
||||
Query Parameters:
|
||||
|
||||
|
|
|
@ -2422,49 +2422,157 @@ Docker networks report the following events:
|
|||
|
||||
HTTP/1.1 200 OK
|
||||
Content-Type: application/json
|
||||
Server: Docker/1.10.0 (linux)
|
||||
Date: Fri, 29 Apr 2016 15:18:06 GMT
|
||||
Transfer-Encoding: chunked
|
||||
|
||||
[
|
||||
{
|
||||
"action": "pull",
|
||||
"type": "image",
|
||||
"actor": {
|
||||
"id": "busybox:latest",
|
||||
"attributes": {}
|
||||
}
|
||||
"time": 1442421700,
|
||||
"timeNano": 1442421700598988358
|
||||
},
|
||||
{
|
||||
"action": "create",
|
||||
"type": "container",
|
||||
"actor": {
|
||||
"id": "5745704abe9caa5",
|
||||
"attributes": {"image": "busybox"}
|
||||
}
|
||||
"time": 1442421716,
|
||||
"timeNano": 1442421716853979870
|
||||
},
|
||||
{
|
||||
"action": "attach",
|
||||
"type": "container",
|
||||
"actor": {
|
||||
"id": "5745704abe9caa5",
|
||||
"attributes": {"image": "busybox"}
|
||||
}
|
||||
"time": 1442421716,
|
||||
"timeNano": 1442421716894759198
|
||||
},
|
||||
{
|
||||
"action": "start",
|
||||
"type": "container",
|
||||
"actor": {
|
||||
"id": "5745704abe9caa5",
|
||||
"attributes": {"image": "busybox"}
|
||||
}
|
||||
"time": 1442421716,
|
||||
"timeNano": 1442421716983607193
|
||||
}
|
||||
]
|
||||
{
|
||||
"status": "pull",
|
||||
"id": "alpine:latest",
|
||||
"Type": "image",
|
||||
"Action": "pull",
|
||||
"Actor": {
|
||||
"ID": "alpine:latest",
|
||||
"Attributes": {
|
||||
"name": "alpine"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101301854122
|
||||
}
|
||||
{
|
||||
"status": "create",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "create",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101381709551
|
||||
}
|
||||
{
|
||||
"status": "attach",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "attach",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101383858412
|
||||
}
|
||||
{
|
||||
"Type": "network",
|
||||
"Action": "connect",
|
||||
"Actor": {
|
||||
"ID": "7dc8ac97d5d29ef6c31b6052f3938c1e8f2749abbd17d1bd1febf2608db1b474",
|
||||
"Attributes": {
|
||||
"container": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"name": "bridge",
|
||||
"type": "bridge"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101394865557
|
||||
}
|
||||
{
|
||||
"status": "start",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "start",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101607533796
|
||||
}
|
||||
{
|
||||
"status": "resize",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "resize",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"height": "46",
|
||||
"image": "alpine",
|
||||
"name": "my-container",
|
||||
"width": "204"
|
||||
}
|
||||
},
|
||||
"time": 1461943101,
|
||||
"timeNano": 1461943101610269268
|
||||
}
|
||||
{
|
||||
"status": "die",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "die",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"exitCode": "0",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943105,
|
||||
"timeNano": 1461943105079144137
|
||||
}
|
||||
{
|
||||
"Type": "network",
|
||||
"Action": "disconnect",
|
||||
"Actor": {
|
||||
"ID": "7dc8ac97d5d29ef6c31b6052f3938c1e8f2749abbd17d1bd1febf2608db1b474",
|
||||
"Attributes": {
|
||||
"container": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"name": "bridge",
|
||||
"type": "bridge"
|
||||
}
|
||||
},
|
||||
"time": 1461943105,
|
||||
"timeNano": 1461943105230860245
|
||||
}
|
||||
{
|
||||
"status": "destroy",
|
||||
"id": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"from": "alpine",
|
||||
"Type": "container",
|
||||
"Action": "destroy",
|
||||
"Actor": {
|
||||
"ID": "ede54ee1afda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c743",
|
||||
"Attributes": {
|
||||
"com.example.some-label": "some-label-value",
|
||||
"image": "alpine",
|
||||
"name": "my-container"
|
||||
}
|
||||
},
|
||||
"time": 1461943105,
|
||||
"timeNano": 1461943105338056026
|
||||
}
|
||||
|
||||
Query Parameters:
|
||||
|
||||
|
|
Loading…
Reference in a new issue