{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/pouch/issues/2037","repository_url":"https://api.github.com/repos/alibaba/pouch","labels_url":"https://api.github.com/repos/alibaba/pouch/issues/2037/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/pouch/issues/2037/comments","events_url":"https://api.github.com/repos/alibaba/pouch/issues/2037/events","html_url":"https://github.com/alibaba/pouch/pull/2037","id":346910132,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NjU1NjI2","number":2037,"title":"feature: add request handling statistics for pouch daemon","user":{"login":"allencloud","id":9465626,"node_id":"MDQ6VXNlcjk0NjU2MjY=","avatar_url":"https://avatars3.githubusercontent.com/u/9465626?v=4","gravatar_id":"","url":"https://api.github.com/users/allencloud","html_url":"https://github.com/allencloud","followers_url":"https://api.github.com/users/allencloud/followers","following_url":"https://api.github.com/users/allencloud/following{/other_user}","gists_url":"https://api.github.com/users/allencloud/gists{/gist_id}","starred_url":"https://api.github.com/users/allencloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allencloud/subscriptions","organizations_url":"https://api.github.com/users/allencloud/orgs","repos_url":"https://api.github.com/users/allencloud/repos","events_url":"https://api.github.com/users/allencloud/events{/privacy}","received_events_url":"https://api.github.com/users/allencloud/received_events","type":"User","site_admin":false},"labels":[{"id":722344260,"node_id":"MDU6TGFiZWw3MjIzNDQyNjA=","url":"https://api.github.com/repos/alibaba/pouch/labels/conflict/needs-rebase","name":"conflict/needs-rebase","color":"cccccc","default":false},{"id":722348097,"node_id":"MDU6TGFiZWw3MjIzNDgwOTc=","url":"https://api.github.com/repos/alibaba/pouch/labels/kind/feature","name":"kind/feature","color":"1d76db","default":false},{"id":722355278,"node_id":"MDU6TGFiZWw3MjIzNTUyNzg=","url":"https://api.github.com/repos/alibaba/pouch/labels/size/XL","name":"size/XL","color":"f4abdb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-02T08:27:29Z","updated_at":"2018-12-19T02:10:03Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/alibaba/pouch/pulls/2037","html_url":"https://github.com/alibaba/pouch/pull/2037","diff_url":"https://github.com/alibaba/pouch/pull/2037.diff","patch_url":"https://github.com/alibaba/pouch/pull/2037.patch"},"body":"Signed-off-by: Allen Sun <allensun.shl@alibaba-inc.com>\r\n\r\n<!-- \r\nPlease make sure you have read and understood the contributing guidelines;\r\nhttps://github.com/alibaba/pouch/blob/master/CONTRIBUTING.md -->\r\n\r\n### Ⅰ. Describe what this PR did\r\n\r\nWhen called by upper systems, pouch daemon bears lots of requests there. Then what is the dealing status of all these request is a quite important dimension for evaluate whether the daemon deals them very well.\r\n\r\nFor the API layers, we plan to provide a brand new API endpoint:\r\n\r\nGET /stats\r\n\r\nIt returns `ResponseStats`:\r\n```\r\n// ResponseStats ResponseStats contains all request handling result in daemon including 2xx3xx response number, 4xx and 5xx number.\r\n// swagger:model ResponseStats\r\n\r\ntype ResponseStats struct {\r\n\r\n\t// all requests number handled by daemon no matter success or failure.\r\n\tAllRequests uint64 `json:\"AllRequests,omitempty\"`\r\n\r\n\t// all response number returned by daemon which is 4xx status code.\r\n\tReq4xxCount uint64 `json:\"Req4xxCount,omitempty\"`\r\n\r\n\t// all response number returned by daemon which is 5xx status code.\r\n\tReq5xxCount uint64 `json:\"Req5xxCount,omitempty\"`\r\n\r\n\t// all response number returned by daemon which is 2xx or 3xx status code.\r\n\tReq2xx3xxCount uint64 `json:\"req2xx3xxCount,omitempty\"`\r\n}\r\n```\r\n\r\nIf the pouchd restarts, then all the data will start from 0.\r\n\r\n\r\n### Ⅱ. Does this pull request fix one issue?\r\n<!--If that, add \"fixes #xxxx\" below in the next line, for example, fixes #15. Otherwise, add \"NONE\" -->\r\nnone\r\n\r\n### Ⅲ. Describe how you did it\r\nnone\r\n\r\n### Ⅳ. Describe how to verify it\r\nnone\r\n\r\n### Ⅴ. Special notes for reviews\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/alibaba/pouch/issues/comments/448443679","html_url":"https://github.com/alibaba/pouch/pull/2037#issuecomment-448443679","issue_url":"https://api.github.com/repos/alibaba/pouch/issues/2037","id":448443679,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODQ0MzY3OQ==","user":{"login":"pouchrobot","id":33292901,"node_id":"MDQ6VXNlcjMzMjkyOTAx","avatar_url":"https://avatars1.githubusercontent.com/u/33292901?v=4","gravatar_id":"","url":"https://api.github.com/users/pouchrobot","html_url":"https://github.com/pouchrobot","followers_url":"https://api.github.com/users/pouchrobot/followers","following_url":"https://api.github.com/users/pouchrobot/following{/other_user}","gists_url":"https://api.github.com/users/pouchrobot/gists{/gist_id}","starred_url":"https://api.github.com/users/pouchrobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pouchrobot/subscriptions","organizations_url":"https://api.github.com/users/pouchrobot/orgs","repos_url":"https://api.github.com/users/pouchrobot/repos","events_url":"https://api.github.com/users/pouchrobot/events{/privacy}","received_events_url":"https://api.github.com/users/pouchrobot/received_events","type":"User","site_admin":false},"created_at":"2018-12-19T02:10:03Z","updated_at":"2018-12-19T02:10:03Z","author_association":"COLLABORATOR","body":"ping @allencloud \nConflict happens after merging a previous commit.\nPlease rebase the branch against master and push it back again. Thanks a lot.\n"}}
{"actor":{"display_login":"pouchrobot"}}