{"action":"opened","number":135,"pull_request":{"url":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/135","id":42102957,"html_url":"https://github.com/mackerelio/mackerel-agent/pull/135","diff_url":"https://github.com/mackerelio/mackerel-agent/pull/135.diff","patch_url":"https://github.com/mackerelio/mackerel-agent/pull/135.patch","issue_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/135","number":135,"state":"open","locked":false,"title":"Fix bug that checks is not removed when no checks.","user":{"login":"Sixeight","id":9955,"avatar_url":"https://avatars.githubusercontent.com/u/9955?v=3","gravatar_id":"","url":"https://api.github.com/users/Sixeight","html_url":"https://github.com/Sixeight","followers_url":"https://api.github.com/users/Sixeight/followers","following_url":"https://api.github.com/users/Sixeight/following{/other_user}","gists_url":"https://api.github.com/users/Sixeight/gists{/gist_id}","starred_url":"https://api.github.com/users/Sixeight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sixeight/subscriptions","organizations_url":"https://api.github.com/users/Sixeight/orgs","repos_url":"https://api.github.com/users/Sixeight/repos","events_url":"https://api.github.com/users/Sixeight/events{/privacy}","received_events_url":"https://api.github.com/users/Sixeight/received_events","type":"User","site_admin":false},"body":"## Problem\r\n\r\nWhen last check is removed, agent does not send `checks`.","created_at":"2015-08-11T08:13:12Z","updated_at":"2015-08-11T08:13:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/135/commits","review_comments_url":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/135/comments","review_comment_url":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/135/comments","statuses_url":"https://api.github.com/repos/mackerelio/mackerel-agent/statuses/05d900c5d01ad2bd29deb37ce33e5798530d7c32","head":{"label":"mackerelio:fix/bug-about-empty-checkers","ref":"fix/bug-about-empty-checkers","sha":"05d900c5d01ad2bd29deb37ce33e5798530d7c32","user":{"login":"mackerelio","id":6637336,"avatar_url":"https://avatars.githubusercontent.com/u/6637336?v=3","gravatar_id":"","url":"https://api.github.com/users/mackerelio","html_url":"https://github.com/mackerelio","followers_url":"https://api.github.com/users/mackerelio/followers","following_url":"https://api.github.com/users/mackerelio/following{/other_user}","gists_url":"https://api.github.com/users/mackerelio/gists{/gist_id}","starred_url":"https://api.github.com/users/mackerelio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackerelio/subscriptions","organizations_url":"https://api.github.com/users/mackerelio/orgs","repos_url":"https://api.github.com/users/mackerelio/repos","events_url":"https://api.github.com/users/mackerelio/events{/privacy}","received_events_url":"https://api.github.com/users/mackerelio/received_events","type":"Organization","site_admin":false},"repo":{"id":19845168,"name":"mackerel-agent","full_name":"mackerelio/mackerel-agent","owner":{"login":"mackerelio","id":6637336,"avatar_url":"https://avatars.githubusercontent.com/u/6637336?v=3","gravatar_id":"","url":"https://api.github.com/users/mackerelio","html_url":"https://github.com/mackerelio","followers_url":"https://api.github.com/users/mackerelio/followers","following_url":"https://api.github.com/users/mackerelio/following{/other_user}","gists_url":"https://api.github.com/users/mackerelio/gists{/gist_id}","starred_url":"https://api.github.com/users/mackerelio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackerelio/subscriptions","organizations_url":"https://api.github.com/users/mackerelio/orgs","repos_url":"https://api.github.com/users/mackerelio/repos","events_url":"https://api.github.com/users/mackerelio/events{/privacy}","received_events_url":"https://api.github.com/users/mackerelio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mackerelio/mackerel-agent","description":"mackerel-agent is an agent program to post your hosts' metrics to mackerel.io.","fork":false,"url":"https://api.github.com/repos/mackerelio/mackerel-agent","forks_url":"https://api.github.com/repos/mackerelio/mackerel-agent/forks","keys_url":"https://api.github.com/repos/mackerelio/mackerel-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mackerelio/mackerel-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mackerelio/mackerel-agent/teams","hooks_url":"https://api.github.com/repos/mackerelio/mackerel-agent/hooks","issue_events_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/events{/number}","events_url":"https://api.github.com/repos/mackerelio/mackerel-agent/events","assignees_url":"https://api.github.com/repos/mackerelio/mackerel-agent/assignees{/user}","branches_url":"https://api.github.com/repos/mackerelio/mackerel-agent/branches{/branch}","tags_url":"https://api.github.com/repos/mackerelio/mackerel-agent/tags","blobs_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mackerelio/mackerel-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/mackerelio/mackerel-agent/languages","stargazers_url":"https://api.github.com/repos/mackerelio/mackerel-agent/stargazers","contributors_url":"https://api.github.com/repos/mackerelio/mackerel-agent/contributors","subscribers_url":"https://api.github.com/repos/mackerelio/mackerel-agent/subscribers","subscription_url":"https://api.github.com/repos/mackerelio/mackerel-agent/subscription","commits_url":"https://api.github.com/repos/mackerelio/mackerel-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/mackerelio/mackerel-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/mackerelio/mackerel-agent/contents/{+path}","compare_url":"https://api.github.com/repos/mackerelio/mackerel-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mackerelio/mackerel-agent/merges","archive_url":"https://api.github.com/repos/mackerelio/mackerel-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mackerelio/mackerel-agent/downloads","issues_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues{/number}","pulls_url":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/mackerelio/mackerel-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/mackerelio/mackerel-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mackerelio/mackerel-agent/labels{/name}","releases_url":"https://api.github.com/repos/mackerelio/mackerel-agent/releases{/id}","created_at":"2014-05-16T05:01:38Z","updated_at":"2015-08-07T14:07:25Z","pushed_at":"2015-08-11T07:59:50Z","git_url":"git://github.com/mackerelio/mackerel-agent.git","ssh_url":"git@github.com:mackerelio/mackerel-agent.git","clone_url":"https://github.com/mackerelio/mackerel-agent.git","svn_url":"https://github.com/mackerelio/mackerel-agent","homepage":"https://mackerel.io","size":2544,"stargazers_count":203,"watchers_count":203,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":5,"forks":15,"open_issues":5,"watchers":203,"default_branch":"master"}},"base":{"label":"mackerelio:master","ref":"master","sha":"b9dba8c73d38e09604a2e6a4c902f2b002eace61","user":{"login":"mackerelio","id":6637336,"avatar_url":"https://avatars.githubusercontent.com/u/6637336?v=3","gravatar_id":"","url":"https://api.github.com/users/mackerelio","html_url":"https://github.com/mackerelio","followers_url":"https://api.github.com/users/mackerelio/followers","following_url":"https://api.github.com/users/mackerelio/following{/other_user}","gists_url":"https://api.github.com/users/mackerelio/gists{/gist_id}","starred_url":"https://api.github.com/users/mackerelio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackerelio/subscriptions","organizations_url":"https://api.github.com/users/mackerelio/orgs","repos_url":"https://api.github.com/users/mackerelio/repos","events_url":"https://api.github.com/users/mackerelio/events{/privacy}","received_events_url":"https://api.github.com/users/mackerelio/received_events","type":"Organization","site_admin":false},"repo":{"id":19845168,"name":"mackerel-agent","full_name":"mackerelio/mackerel-agent","owner":{"login":"mackerelio","id":6637336,"avatar_url":"https://avatars.githubusercontent.com/u/6637336?v=3","gravatar_id":"","url":"https://api.github.com/users/mackerelio","html_url":"https://github.com/mackerelio","followers_url":"https://api.github.com/users/mackerelio/followers","following_url":"https://api.github.com/users/mackerelio/following{/other_user}","gists_url":"https://api.github.com/users/mackerelio/gists{/gist_id}","starred_url":"https://api.github.com/users/mackerelio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackerelio/subscriptions","organizations_url":"https://api.github.com/users/mackerelio/orgs","repos_url":"https://api.github.com/users/mackerelio/repos","events_url":"https://api.github.com/users/mackerelio/events{/privacy}","received_events_url":"https://api.github.com/users/mackerelio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mackerelio/mackerel-agent","description":"mackerel-agent is an agent program to post your hosts' metrics to mackerel.io.","fork":false,"url":"https://api.github.com/repos/mackerelio/mackerel-agent","forks_url":"https://api.github.com/repos/mackerelio/mackerel-agent/forks","keys_url":"https://api.github.com/repos/mackerelio/mackerel-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mackerelio/mackerel-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mackerelio/mackerel-agent/teams","hooks_url":"https://api.github.com/repos/mackerelio/mackerel-agent/hooks","issue_events_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/events{/number}","events_url":"https://api.github.com/repos/mackerelio/mackerel-agent/events","assignees_url":"https://api.github.com/repos/mackerelio/mackerel-agent/assignees{/user}","branches_url":"https://api.github.com/repos/mackerelio/mackerel-agent/branches{/branch}","tags_url":"https://api.github.com/repos/mackerelio/mackerel-agent/tags","blobs_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mackerelio/mackerel-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/mackerelio/mackerel-agent/languages","stargazers_url":"https://api.github.com/repos/mackerelio/mackerel-agent/stargazers","contributors_url":"https://api.github.com/repos/mackerelio/mackerel-agent/contributors","subscribers_url":"https://api.github.com/repos/mackerelio/mackerel-agent/subscribers","subscription_url":"https://api.github.com/repos/mackerelio/mackerel-agent/subscription","commits_url":"https://api.github.com/repos/mackerelio/mackerel-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/mackerelio/mackerel-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/mackerelio/mackerel-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/mackerelio/mackerel-agent/contents/{+path}","compare_url":"https://api.github.com/repos/mackerelio/mackerel-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mackerelio/mackerel-agent/merges","archive_url":"https://api.github.com/repos/mackerelio/mackerel-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mackerelio/mackerel-agent/downloads","issues_url":"https://api.github.com/repos/mackerelio/mackerel-agent/issues{/number}","pulls_url":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/mackerelio/mackerel-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/mackerelio/mackerel-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mackerelio/mackerel-agent/labels{/name}","releases_url":"https://api.github.com/repos/mackerelio/mackerel-agent/releases{/id}","created_at":"2014-05-16T05:01:38Z","updated_at":"2015-08-07T14:07:25Z","pushed_at":"2015-08-11T07:59:50Z","git_url":"git://github.com/mackerelio/mackerel-agent.git","ssh_url":"git@github.com:mackerelio/mackerel-agent.git","clone_url":"https://github.com/mackerelio/mackerel-agent.git","svn_url":"https://github.com/mackerelio/mackerel-agent","homepage":"https://mackerel.io","size":2544,"stargazers_count":203,"watchers_count":203,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":5,"forks":15,"open_issues":5,"watchers":203,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/135"},"html":{"href":"https://github.com/mackerelio/mackerel-agent/pull/135"},"issue":{"href":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/135"},"comments":{"href":"https://api.github.com/repos/mackerelio/mackerel-agent/issues/135/comments"},"review_comments":{"href":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/135/comments"},"review_comment":{"href":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mackerelio/mackerel-agent/pulls/135/commits"},"statuses":{"href":"https://api.github.com/repos/mackerelio/mackerel-agent/statuses/05d900c5d01ad2bd29deb37ce33e5798530d7c32"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":10,"deletions":1,"changed_files":2}}