{"action":"closed","number":7,"pull_request":{"url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/pulls/7","id":118154454,"html_url":"https://github.com/alphagov/paas-cf-apps-statsd/pull/7","diff_url":"https://github.com/alphagov/paas-cf-apps-statsd/pull/7.diff","patch_url":"https://github.com/alphagov/paas-cf-apps-statsd/pull/7.patch","issue_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/issues/7","number":7,"state":"closed","locked":false,"title":"Fix empty space and org names and only process ContainerMetric events","user":{"login":"sakisv","id":4289633,"avatar_url":"https://avatars0.githubusercontent.com/u/4289633?v=3","gravatar_id":"","url":"https://api.github.com/users/sakisv","html_url":"https://github.com/sakisv","followers_url":"https://api.github.com/users/sakisv/followers","following_url":"https://api.github.com/users/sakisv/following{/other_user}","gists_url":"https://api.github.com/users/sakisv/gists{/gist_id}","starred_url":"https://api.github.com/users/sakisv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakisv/subscriptions","organizations_url":"https://api.github.com/users/sakisv/orgs","repos_url":"https://api.github.com/users/sakisv/repos","events_url":"https://api.github.com/users/sakisv/events{/privacy}","received_events_url":"https://api.github.com/users/sakisv/received_events","type":"User","site_admin":false},"body":"This PR is for the 2 most urgent changes, as requested in #6.\r\n\r\nThe first change is filtering the event stream and processing only `Envelope_ContainerMetric` events. Other events should not be processed as they generate 0 value metrics which is incorrect.\r\n\r\nThe second change is addressing an issue where org name and space name would be empty, breaking dashboards based on filtering of these values.","created_at":"2017-04-28T13:39:54Z","updated_at":"2017-05-18T15:51:13Z","closed_at":"2017-05-18T15:51:12Z","merged_at":"2017-05-18T15:51:12Z","merge_commit_sha":"c2349eb402cd7abb27a652b1513ef963a3e4cc13","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/pulls/7/commits","review_comments_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/pulls/7/comments","review_comment_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/issues/7/comments","statuses_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/statuses/121042845ded1aba649d3e3f19f6b97dc1a595c0","head":{"label":"sakisv:fix-empty-space-and-org","ref":"fix-empty-space-and-org","sha":"121042845ded1aba649d3e3f19f6b97dc1a595c0","user":{"login":"sakisv","id":4289633,"avatar_url":"https://avatars0.githubusercontent.com/u/4289633?v=3","gravatar_id":"","url":"https://api.github.com/users/sakisv","html_url":"https://github.com/sakisv","followers_url":"https://api.github.com/users/sakisv/followers","following_url":"https://api.github.com/users/sakisv/following{/other_user}","gists_url":"https://api.github.com/users/sakisv/gists{/gist_id}","starred_url":"https://api.github.com/users/sakisv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakisv/subscriptions","organizations_url":"https://api.github.com/users/sakisv/orgs","repos_url":"https://api.github.com/users/sakisv/repos","events_url":"https://api.github.com/users/sakisv/events{/privacy}","received_events_url":"https://api.github.com/users/sakisv/received_events","type":"User","site_admin":false},"repo":{"id":89585206,"name":"paas-cf-apps-statsd","full_name":"sakisv/paas-cf-apps-statsd","owner":{"login":"sakisv","id":4289633,"avatar_url":"https://avatars0.githubusercontent.com/u/4289633?v=3","gravatar_id":"","url":"https://api.github.com/users/sakisv","html_url":"https://github.com/sakisv","followers_url":"https://api.github.com/users/sakisv/followers","following_url":"https://api.github.com/users/sakisv/following{/other_user}","gists_url":"https://api.github.com/users/sakisv/gists{/gist_id}","starred_url":"https://api.github.com/users/sakisv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakisv/subscriptions","organizations_url":"https://api.github.com/users/sakisv/orgs","repos_url":"https://api.github.com/users/sakisv/repos","events_url":"https://api.github.com/users/sakisv/events{/privacy}","received_events_url":"https://api.github.com/users/sakisv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sakisv/paas-cf-apps-statsd","description":"The CloudFoundry StatsD apps metric exporter.","fork":true,"url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd","forks_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/forks","keys_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/teams","hooks_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/hooks","issue_events_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/issues/events{/number}","events_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/events","assignees_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/assignees{/user}","branches_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/branches{/branch}","tags_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/tags","blobs_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/git/refs{/sha}","trees_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/statuses/{sha}","languages_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/languages","stargazers_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/stargazers","contributors_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/contributors","subscribers_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/subscribers","subscription_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/subscription","commits_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/commits{/sha}","git_commits_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/git/commits{/sha}","comments_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/comments{/number}","issue_comment_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/issues/comments{/number}","contents_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/contents/{+path}","compare_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/merges","archive_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/downloads","issues_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/issues{/number}","pulls_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/pulls{/number}","milestones_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/milestones{/number}","notifications_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/labels{/name}","releases_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/releases{/id}","deployments_url":"https://api.github.com/repos/sakisv/paas-cf-apps-statsd/deployments","created_at":"2017-04-27T10:22:11Z","updated_at":"2017-04-27T10:22:12Z","pushed_at":"2017-05-18T15:41:36Z","git_url":"git://github.com/sakisv/paas-cf-apps-statsd.git","ssh_url":"git@github.com:sakisv/paas-cf-apps-statsd.git","clone_url":"https://github.com/sakisv/paas-cf-apps-statsd.git","svn_url":"https://github.com/sakisv/paas-cf-apps-statsd","homepage":null,"size":860,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"alphagov:master","ref":"master","sha":"19ffc6e53e808a59cca587da3ef901501affae08","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars3.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":83785064,"name":"paas-cf-apps-statsd","full_name":"alphagov/paas-cf-apps-statsd","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars3.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/paas-cf-apps-statsd","description":"The CloudFoundry StatsD apps metric exporter.","fork":false,"url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd","forks_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/forks","keys_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/teams","hooks_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/hooks","issue_events_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/events","assignees_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/tags","blobs_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/languages","stargazers_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/stargazers","contributors_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/contributors","subscribers_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/subscribers","subscription_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/subscription","commits_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/merges","archive_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/downloads","issues_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/deployments","created_at":"2017-03-03T10:07:25Z","updated_at":"2017-03-03T10:08:32Z","pushed_at":"2017-05-18T15:51:12Z","git_url":"git://github.com/alphagov/paas-cf-apps-statsd.git","ssh_url":"git@github.com:alphagov/paas-cf-apps-statsd.git","clone_url":"https://github.com/alphagov/paas-cf-apps-statsd.git","svn_url":"https://github.com/alphagov/paas-cf-apps-statsd","homepage":null,"size":863,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/pulls/7"},"html":{"href":"https://github.com/alphagov/paas-cf-apps-statsd/pull/7"},"issue":{"href":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/issues/7"},"comments":{"href":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/paas-cf-apps-statsd/statuses/121042845ded1aba649d3e3f19f6b97dc1a595c0"}},"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"dcarley","id":260438,"avatar_url":"https://avatars3.githubusercontent.com/u/260438?v=3","gravatar_id":"","url":"https://api.github.com/users/dcarley","html_url":"https://github.com/dcarley","followers_url":"https://api.github.com/users/dcarley/followers","following_url":"https://api.github.com/users/dcarley/following{/other_user}","gists_url":"https://api.github.com/users/dcarley/gists{/gist_id}","starred_url":"https://api.github.com/users/dcarley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcarley/subscriptions","organizations_url":"https://api.github.com/users/dcarley/orgs","repos_url":"https://api.github.com/users/dcarley/repos","events_url":"https://api.github.com/users/dcarley/events{/privacy}","received_events_url":"https://api.github.com/users/dcarley/received_events","type":"User","site_admin":false},"comments":7,"review_comments":3,"maintainer_can_modify":false,"commits":2,"additions":117,"deletions":12,"changed_files":2}}
{"actor":{"display_login":"dcarley"}}