{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/16317","labels_url":"https://api.github.com/repos/docker/docker/issues/16317/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/16317/comments","events_url":"https://api.github.com/repos/docker/docker/issues/16317/events","html_url":"https://github.com/docker/docker/pull/16317","id":106630196,"number":16317,"title":"jsonmessage: add and use TimeNano for events","user":{"login":"vbatts","id":67049,"avatar_url":"https://avatars.githubusercontent.com/u/67049?v=3","gravatar_id":"","url":"https://api.github.com/users/vbatts","html_url":"https://github.com/vbatts","followers_url":"https://api.github.com/users/vbatts/followers","following_url":"https://api.github.com/users/vbatts/following{/other_user}","gists_url":"https://api.github.com/users/vbatts/gists{/gist_id}","starred_url":"https://api.github.com/users/vbatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbatts/subscriptions","organizations_url":"https://api.github.com/users/vbatts/orgs","repos_url":"https://api.github.com/users/vbatts/repos","events_url":"https://api.github.com/users/vbatts/events{/privacy}","received_events_url":"https://api.github.com/users/vbatts/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/2-code-review","name":"status/2-code-review","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-15T19:40:32Z","updated_at":"2015-09-16T16:34:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/16317","html_url":"https://github.com/docker/docker/pull/16317","diff_url":"https://github.com/docker/docker/pull/16317.diff","patch_url":"https://github.com/docker/docker/pull/16317.patch"},"body":"The events logging uses nano formatting, but only provides a Unix()\r\ntime, therefor ordering may get lost in the output. Example:\r\n```\r\n2015-09-15T14:18:51.000000000-04:00 ee46febd64ac629f7de9cd8bf58582e6f263d97ff46896adc5b508db804682da: (from busybox) resize\r\n2015-09-15T14:18:51.000000000-04:00 a78c9149b1c0474502a117efaa814541926c2ae6ec3c76607e1c931b84c3a44b: (from busybox) resize\r\n```\r\n\r\nBy having a field just for Nano time, when set, the marshalling back to\r\n`time.Unix(sec int64, nsec int64)` has zeros exactly where it needs to.\r\nThis does not break any existing use of jsonmessage.JSONMessage, but now\r\nallows for use of `UnixNano()` and get event formatting that has\r\ndistinguishable order. Example:\r\n```\r\n2015-09-15T15:37:23.810295632-04:00 6adcf8ed9f5f5ec059a915466cd1cde86a18b4a085fc3af405e9cc9fecbbbbaf: (from busybox) resize\r\n2015-09-15T15:37:23.810412202-04:00 6b7c5bfdc3f902096f5a91e628f21bd4b56e32590c5b4b97044aafc005ddcb0d: (from busybox) resize\r\n```\r\n\r\nSigned-off-by: Vincent Batts <vbatts@redhat.com>"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/140796180","html_url":"https://github.com/docker/docker/pull/16317#issuecomment-140796180","issue_url":"https://api.github.com/repos/docker/docker/issues/16317","id":140796180,"user":{"login":"LK4D4","id":101445,"avatar_url":"https://avatars.githubusercontent.com/u/101445?v=3","gravatar_id":"","url":"https://api.github.com/users/LK4D4","html_url":"https://github.com/LK4D4","followers_url":"https://api.github.com/users/LK4D4/followers","following_url":"https://api.github.com/users/LK4D4/following{/other_user}","gists_url":"https://api.github.com/users/LK4D4/gists{/gist_id}","starred_url":"https://api.github.com/users/LK4D4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LK4D4/subscriptions","organizations_url":"https://api.github.com/users/LK4D4/orgs","repos_url":"https://api.github.com/users/LK4D4/repos","events_url":"https://api.github.com/users/LK4D4/events{/privacy}","received_events_url":"https://api.github.com/users/LK4D4/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T16:34:06Z","updated_at":"2015-09-16T16:34:06Z","body":"Requires API docs update :)"}}