{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/pulls/3","id":83572365,"html_url":"https://github.com/ariarijp/mackerel-plugin-ping/pull/3","diff_url":"https://github.com/ariarijp/mackerel-plugin-ping/pull/3.diff","patch_url":"https://github.com/ariarijp/mackerel-plugin-ping/pull/3.patch","issue_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/issues/3","number":3,"state":"closed","locked":false,"title":"Returns the average of RTT.","user":{"login":"sugy","id":149931,"avatar_url":"https://avatars.githubusercontent.com/u/149931?v=3","gravatar_id":"","url":"https://api.github.com/users/sugy","html_url":"https://github.com/sugy","followers_url":"https://api.github.com/users/sugy/followers","following_url":"https://api.github.com/users/sugy/following{/other_user}","gists_url":"https://api.github.com/users/sugy/gists{/gist_id}","starred_url":"https://api.github.com/users/sugy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sugy/subscriptions","organizations_url":"https://api.github.com/users/sugy/orgs","repos_url":"https://api.github.com/users/sugy/repos","events_url":"https://api.github.com/users/sugy/events{/privacy}","received_events_url":"https://api.github.com/users/sugy/received_events","type":"User","site_admin":false},"body":"mackerelに返す値を-countで指定した回数 ping packet を送信（受信）した際の RTT の平均値に出来るようにします。\r\n\r\nwaittime は fastping の MaxRTT を設定できるようにします。この値を設定することで、最大待ち時間を設定できます。(line:41)\r\nping packet の受信までに MaxRTT を超えた場合は OnRecv メソッドが呼び出されないため、packet 受信回数としてカウントされません。(line:34)\r\nacceptmiss(AcceptCount)で、パケットの戻りが MaxRTT を超えてしまっても許容する回数を設定することで、全てのパケットが戻ってこなくても平均値を返すようにできます。（line:50)\r\n","created_at":"2016-09-01T05:26:59Z","updated_at":"2016-09-01T06:31:24Z","closed_at":"2016-09-01T06:31:24Z","merged_at":"2016-09-01T06:31:24Z","merge_commit_sha":"ee91d559beefea96ac5e919ce11dbbad9bf5ea9c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/pulls/3/commits","review_comments_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/pulls/3/comments","review_comment_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/issues/3/comments","statuses_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/statuses/16abd050bdf4bbe10c94f9339824a9cb72bc3e96","head":{"label":"sugy:rtt-avg","ref":"rtt-avg","sha":"16abd050bdf4bbe10c94f9339824a9cb72bc3e96","user":{"login":"sugy","id":149931,"avatar_url":"https://avatars.githubusercontent.com/u/149931?v=3","gravatar_id":"","url":"https://api.github.com/users/sugy","html_url":"https://github.com/sugy","followers_url":"https://api.github.com/users/sugy/followers","following_url":"https://api.github.com/users/sugy/following{/other_user}","gists_url":"https://api.github.com/users/sugy/gists{/gist_id}","starred_url":"https://api.github.com/users/sugy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sugy/subscriptions","organizations_url":"https://api.github.com/users/sugy/orgs","repos_url":"https://api.github.com/users/sugy/repos","events_url":"https://api.github.com/users/sugy/events{/privacy}","received_events_url":"https://api.github.com/users/sugy/received_events","type":"User","site_admin":false},"repo":{"id":66811712,"name":"mackerel-plugin-ping","full_name":"sugy/mackerel-plugin-ping","owner":{"login":"sugy","id":149931,"avatar_url":"https://avatars.githubusercontent.com/u/149931?v=3","gravatar_id":"","url":"https://api.github.com/users/sugy","html_url":"https://github.com/sugy","followers_url":"https://api.github.com/users/sugy/followers","following_url":"https://api.github.com/users/sugy/following{/other_user}","gists_url":"https://api.github.com/users/sugy/gists{/gist_id}","starred_url":"https://api.github.com/users/sugy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sugy/subscriptions","organizations_url":"https://api.github.com/users/sugy/orgs","repos_url":"https://api.github.com/users/sugy/repos","events_url":"https://api.github.com/users/sugy/events{/privacy}","received_events_url":"https://api.github.com/users/sugy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sugy/mackerel-plugin-ping","description":"ICMP Ping RTT custom metrics plugin for mackerel-agent.","fork":true,"url":"https://api.github.com/repos/sugy/mackerel-plugin-ping","forks_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/forks","keys_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/teams","hooks_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/hooks","issue_events_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/issues/events{/number}","events_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/events","assignees_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/assignees{/user}","branches_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/branches{/branch}","tags_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/tags","blobs_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/git/refs{/sha}","trees_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/statuses/{sha}","languages_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/languages","stargazers_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/stargazers","contributors_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/contributors","subscribers_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/subscribers","subscription_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/subscription","commits_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/commits{/sha}","git_commits_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/git/commits{/sha}","comments_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/comments{/number}","issue_comment_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/issues/comments{/number}","contents_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/contents/{+path}","compare_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/merges","archive_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/downloads","issues_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/issues{/number}","pulls_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/pulls{/number}","milestones_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/milestones{/number}","notifications_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/labels{/name}","releases_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/releases{/id}","deployments_url":"https://api.github.com/repos/sugy/mackerel-plugin-ping/deployments","created_at":"2016-08-29T04:37:10Z","updated_at":"2016-08-29T04:37:11Z","pushed_at":"2016-09-01T06:18:09Z","git_url":"git://github.com/sugy/mackerel-plugin-ping.git","ssh_url":"git@github.com:sugy/mackerel-plugin-ping.git","clone_url":"https://github.com/sugy/mackerel-plugin-ping.git","svn_url":"https://github.com/sugy/mackerel-plugin-ping","homepage":"","size":14,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ariarijp:master","ref":"master","sha":"83f28a704a6417690c07da781072f8ad2503d3b1","user":{"login":"ariarijp","id":635649,"avatar_url":"https://avatars.githubusercontent.com/u/635649?v=3","gravatar_id":"","url":"https://api.github.com/users/ariarijp","html_url":"https://github.com/ariarijp","followers_url":"https://api.github.com/users/ariarijp/followers","following_url":"https://api.github.com/users/ariarijp/following{/other_user}","gists_url":"https://api.github.com/users/ariarijp/gists{/gist_id}","starred_url":"https://api.github.com/users/ariarijp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariarijp/subscriptions","organizations_url":"https://api.github.com/users/ariarijp/orgs","repos_url":"https://api.github.com/users/ariarijp/repos","events_url":"https://api.github.com/users/ariarijp/events{/privacy}","received_events_url":"https://api.github.com/users/ariarijp/received_events","type":"User","site_admin":false},"repo":{"id":48651525,"name":"mackerel-plugin-ping","full_name":"ariarijp/mackerel-plugin-ping","owner":{"login":"ariarijp","id":635649,"avatar_url":"https://avatars.githubusercontent.com/u/635649?v=3","gravatar_id":"","url":"https://api.github.com/users/ariarijp","html_url":"https://github.com/ariarijp","followers_url":"https://api.github.com/users/ariarijp/followers","following_url":"https://api.github.com/users/ariarijp/following{/other_user}","gists_url":"https://api.github.com/users/ariarijp/gists{/gist_id}","starred_url":"https://api.github.com/users/ariarijp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariarijp/subscriptions","organizations_url":"https://api.github.com/users/ariarijp/orgs","repos_url":"https://api.github.com/users/ariarijp/repos","events_url":"https://api.github.com/users/ariarijp/events{/privacy}","received_events_url":"https://api.github.com/users/ariarijp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ariarijp/mackerel-plugin-ping","description":"ICMP Ping RTT custom metrics plugin for mackerel-agent.","fork":false,"url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping","forks_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/forks","keys_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/teams","hooks_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/hooks","issue_events_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/issues/events{/number}","events_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/events","assignees_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/assignees{/user}","branches_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/branches{/branch}","tags_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/tags","blobs_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/git/refs{/sha}","trees_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/statuses/{sha}","languages_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/languages","stargazers_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/stargazers","contributors_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/contributors","subscribers_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/subscribers","subscription_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/subscription","commits_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/commits{/sha}","git_commits_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/git/commits{/sha}","comments_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/comments{/number}","issue_comment_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/issues/comments{/number}","contents_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/contents/{+path}","compare_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/merges","archive_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/downloads","issues_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/issues{/number}","pulls_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/pulls{/number}","milestones_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/milestones{/number}","notifications_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/labels{/name}","releases_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/releases{/id}","deployments_url":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/deployments","created_at":"2015-12-27T16:13:43Z","updated_at":"2016-08-30T07:49:12Z","pushed_at":"2016-09-01T06:31:24Z","git_url":"git://github.com/ariarijp/mackerel-plugin-ping.git","ssh_url":"git@github.com:ariarijp/mackerel-plugin-ping.git","clone_url":"https://github.com/ariarijp/mackerel-plugin-ping.git","svn_url":"https://github.com/ariarijp/mackerel-plugin-ping","homepage":"","size":14,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/pulls/3"},"html":{"href":"https://github.com/ariarijp/mackerel-plugin-ping/pull/3"},"issue":{"href":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/issues/3"},"comments":{"href":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/ariarijp/mackerel-plugin-ping/statuses/16abd050bdf4bbe10c94f9339824a9cb72bc3e96"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ariarijp","id":635649,"avatar_url":"https://avatars.githubusercontent.com/u/635649?v=3","gravatar_id":"","url":"https://api.github.com/users/ariarijp","html_url":"https://github.com/ariarijp","followers_url":"https://api.github.com/users/ariarijp/followers","following_url":"https://api.github.com/users/ariarijp/following{/other_user}","gists_url":"https://api.github.com/users/ariarijp/gists{/gist_id}","starred_url":"https://api.github.com/users/ariarijp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariarijp/subscriptions","organizations_url":"https://api.github.com/users/ariarijp/orgs","repos_url":"https://api.github.com/users/ariarijp/repos","events_url":"https://api.github.com/users/ariarijp/events{/privacy}","received_events_url":"https://api.github.com/users/ariarijp/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":1,"additions":28,"deletions":7,"changed_files":1}}
{"actor":{"display_login":"ariarijp"}}