{"action":"created","comment":{"url":"https://api.github.com/repos/python-diamond/Diamond/pulls/comments/89864984","pull_request_review_id":10396407,"id":89864984,"diff_hunk":"@@ -0,0 +1,216 @@\n+# coding=utf-8\n+\n+\"\"\"\n+Send metrics to [Google Pub/Sub](https://cloud.google.com/pubsub/).\n+\n+#### Copyright\n+\n+Copyright 2016 Google Inc.","path":"src/diamond/handler/pubsub.py","position":8,"original_position":8,"commit_id":"e086759fb1bcdd6fe9939565a229ca9b1012b5d2","original_commit_id":"e086759fb1bcdd6fe9939565a229ca9b1012b5d2","user":{"login":"shortdudey123","id":3051981,"avatar_url":"https://avatars.githubusercontent.com/u/3051981?v=3","gravatar_id":"","url":"https://api.github.com/users/shortdudey123","html_url":"https://github.com/shortdudey123","followers_url":"https://api.github.com/users/shortdudey123/followers","following_url":"https://api.github.com/users/shortdudey123/following{/other_user}","gists_url":"https://api.github.com/users/shortdudey123/gists{/gist_id}","starred_url":"https://api.github.com/users/shortdudey123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shortdudey123/subscriptions","organizations_url":"https://api.github.com/users/shortdudey123/orgs","repos_url":"https://api.github.com/users/shortdudey123/repos","events_url":"https://api.github.com/users/shortdudey123/events{/privacy}","received_events_url":"https://api.github.com/users/shortdudey123/received_events","type":"User","site_admin":false},"body":"See https://github.com/python-diamond/Diamond#repos","created_at":"2016-11-28T19:39:26Z","updated_at":"2016-11-28T19:39:26Z","html_url":"https://github.com/python-diamond/Diamond/pull/371#discussion_r89864984","pull_request_url":"https://api.github.com/repos/python-diamond/Diamond/pulls/371","_links":{"self":{"href":"https://api.github.com/repos/python-diamond/Diamond/pulls/comments/89864984"},"html":{"href":"https://github.com/python-diamond/Diamond/pull/371#discussion_r89864984"},"pull_request":{"href":"https://api.github.com/repos/python-diamond/Diamond/pulls/371"}}},"pull_request":{"url":"https://api.github.com/repos/python-diamond/Diamond/pulls/371","id":55664754,"html_url":"https://github.com/python-diamond/Diamond/pull/371","diff_url":"https://github.com/python-diamond/Diamond/pull/371.diff","patch_url":"https://github.com/python-diamond/Diamond/pull/371.patch","issue_url":"https://api.github.com/repos/python-diamond/Diamond/issues/371","number":371,"state":"open","locked":false,"title":"Google pubsub handler","user":{"login":"dcsquared13","id":378169,"avatar_url":"https://avatars.githubusercontent.com/u/378169?v=3","gravatar_id":"","url":"https://api.github.com/users/dcsquared13","html_url":"https://github.com/dcsquared13","followers_url":"https://api.github.com/users/dcsquared13/followers","following_url":"https://api.github.com/users/dcsquared13/following{/other_user}","gists_url":"https://api.github.com/users/dcsquared13/gists{/gist_id}","starred_url":"https://api.github.com/users/dcsquared13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcsquared13/subscriptions","organizations_url":"https://api.github.com/users/dcsquared13/orgs","repos_url":"https://api.github.com/users/dcsquared13/repos","events_url":"https://api.github.com/users/dcsquared13/events{/privacy}","received_events_url":"https://api.github.com/users/dcsquared13/received_events","type":"User","site_admin":false},"body":"Handler added to publish to google pub/sub.\n","created_at":"2016-01-11T19:17:18Z","updated_at":"2016-11-28T19:39:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15e7f8e07bd8c33068e0aec638591679d42d12f7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/python-diamond/Diamond/pulls/371/commits","review_comments_url":"https://api.github.com/repos/python-diamond/Diamond/pulls/371/comments","review_comment_url":"https://api.github.com/repos/python-diamond/Diamond/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python-diamond/Diamond/issues/371/comments","statuses_url":"https://api.github.com/repos/python-diamond/Diamond/statuses/e086759fb1bcdd6fe9939565a229ca9b1012b5d2","head":{"label":"dcsquared13:master","ref":"master","sha":"e086759fb1bcdd6fe9939565a229ca9b1012b5d2","user":{"login":"dcsquared13","id":378169,"avatar_url":"https://avatars.githubusercontent.com/u/378169?v=3","gravatar_id":"","url":"https://api.github.com/users/dcsquared13","html_url":"https://github.com/dcsquared13","followers_url":"https://api.github.com/users/dcsquared13/followers","following_url":"https://api.github.com/users/dcsquared13/following{/other_user}","gists_url":"https://api.github.com/users/dcsquared13/gists{/gist_id}","starred_url":"https://api.github.com/users/dcsquared13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcsquared13/subscriptions","organizations_url":"https://api.github.com/users/dcsquared13/orgs","repos_url":"https://api.github.com/users/dcsquared13/repos","events_url":"https://api.github.com/users/dcsquared13/events{/privacy}","received_events_url":"https://api.github.com/users/dcsquared13/received_events","type":"User","site_admin":false},"repo":{"id":49304343,"name":"Diamond","full_name":"dcsquared13/Diamond","owner":{"login":"dcsquared13","id":378169,"avatar_url":"https://avatars.githubusercontent.com/u/378169?v=3","gravatar_id":"","url":"https://api.github.com/users/dcsquared13","html_url":"https://github.com/dcsquared13","followers_url":"https://api.github.com/users/dcsquared13/followers","following_url":"https://api.github.com/users/dcsquared13/following{/other_user}","gists_url":"https://api.github.com/users/dcsquared13/gists{/gist_id}","starred_url":"https://api.github.com/users/dcsquared13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcsquared13/subscriptions","organizations_url":"https://api.github.com/users/dcsquared13/orgs","repos_url":"https://api.github.com/users/dcsquared13/repos","events_url":"https://api.github.com/users/dcsquared13/events{/privacy}","received_events_url":"https://api.github.com/users/dcsquared13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dcsquared13/Diamond","description":"Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others). It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.","fork":true,"url":"https://api.github.com/repos/dcsquared13/Diamond","forks_url":"https://api.github.com/repos/dcsquared13/Diamond/forks","keys_url":"https://api.github.com/repos/dcsquared13/Diamond/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dcsquared13/Diamond/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dcsquared13/Diamond/teams","hooks_url":"https://api.github.com/repos/dcsquared13/Diamond/hooks","issue_events_url":"https://api.github.com/repos/dcsquared13/Diamond/issues/events{/number}","events_url":"https://api.github.com/repos/dcsquared13/Diamond/events","assignees_url":"https://api.github.com/repos/dcsquared13/Diamond/assignees{/user}","branches_url":"https://api.github.com/repos/dcsquared13/Diamond/branches{/branch}","tags_url":"https://api.github.com/repos/dcsquared13/Diamond/tags","blobs_url":"https://api.github.com/repos/dcsquared13/Diamond/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dcsquared13/Diamond/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dcsquared13/Diamond/git/refs{/sha}","trees_url":"https://api.github.com/repos/dcsquared13/Diamond/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dcsquared13/Diamond/statuses/{sha}","languages_url":"https://api.github.com/repos/dcsquared13/Diamond/languages","stargazers_url":"https://api.github.com/repos/dcsquared13/Diamond/stargazers","contributors_url":"https://api.github.com/repos/dcsquared13/Diamond/contributors","subscribers_url":"https://api.github.com/repos/dcsquared13/Diamond/subscribers","subscription_url":"https://api.github.com/repos/dcsquared13/Diamond/subscription","commits_url":"https://api.github.com/repos/dcsquared13/Diamond/commits{/sha}","git_commits_url":"https://api.github.com/repos/dcsquared13/Diamond/git/commits{/sha}","comments_url":"https://api.github.com/repos/dcsquared13/Diamond/comments{/number}","issue_comment_url":"https://api.github.com/repos/dcsquared13/Diamond/issues/comments{/number}","contents_url":"https://api.github.com/repos/dcsquared13/Diamond/contents/{+path}","compare_url":"https://api.github.com/repos/dcsquared13/Diamond/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dcsquared13/Diamond/merges","archive_url":"https://api.github.com/repos/dcsquared13/Diamond/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dcsquared13/Diamond/downloads","issues_url":"https://api.github.com/repos/dcsquared13/Diamond/issues{/number}","pulls_url":"https://api.github.com/repos/dcsquared13/Diamond/pulls{/number}","milestones_url":"https://api.github.com/repos/dcsquared13/Diamond/milestones{/number}","notifications_url":"https://api.github.com/repos/dcsquared13/Diamond/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dcsquared13/Diamond/labels{/name}","releases_url":"https://api.github.com/repos/dcsquared13/Diamond/releases{/id}","deployments_url":"https://api.github.com/repos/dcsquared13/Diamond/deployments","created_at":"2016-01-09T00:30:26Z","updated_at":"2016-01-11T19:12:45Z","pushed_at":"2016-09-30T18:50:34Z","git_url":"git://github.com/dcsquared13/Diamond.git","ssh_url":"git@github.com:dcsquared13/Diamond.git","clone_url":"https://github.com/dcsquared13/Diamond.git","svn_url":"https://github.com/dcsquared13/Diamond","homepage":"http://diamond.readthedocs.org/","size":3230,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"python-diamond:master","ref":"master","sha":"d2751cab187279b2e903c5c950c22dba4f95c710","user":{"login":"python-diamond","id":5668086,"avatar_url":"https://avatars.githubusercontent.com/u/5668086?v=3","gravatar_id":"","url":"https://api.github.com/users/python-diamond","html_url":"https://github.com/python-diamond","followers_url":"https://api.github.com/users/python-diamond/followers","following_url":"https://api.github.com/users/python-diamond/following{/other_user}","gists_url":"https://api.github.com/users/python-diamond/gists{/gist_id}","starred_url":"https://api.github.com/users/python-diamond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-diamond/subscriptions","organizations_url":"https://api.github.com/users/python-diamond/orgs","repos_url":"https://api.github.com/users/python-diamond/repos","events_url":"https://api.github.com/users/python-diamond/events{/privacy}","received_events_url":"https://api.github.com/users/python-diamond/received_events","type":"Organization","site_admin":false},"repo":{"id":13512018,"name":"Diamond","full_name":"python-diamond/Diamond","owner":{"login":"python-diamond","id":5668086,"avatar_url":"https://avatars.githubusercontent.com/u/5668086?v=3","gravatar_id":"","url":"https://api.github.com/users/python-diamond","html_url":"https://github.com/python-diamond","followers_url":"https://api.github.com/users/python-diamond/followers","following_url":"https://api.github.com/users/python-diamond/following{/other_user}","gists_url":"https://api.github.com/users/python-diamond/gists{/gist_id}","starred_url":"https://api.github.com/users/python-diamond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-diamond/subscriptions","organizations_url":"https://api.github.com/users/python-diamond/orgs","repos_url":"https://api.github.com/users/python-diamond/repos","events_url":"https://api.github.com/users/python-diamond/events{/privacy}","received_events_url":"https://api.github.com/users/python-diamond/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python-diamond/Diamond","description":"Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others). It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.","fork":false,"url":"https://api.github.com/repos/python-diamond/Diamond","forks_url":"https://api.github.com/repos/python-diamond/Diamond/forks","keys_url":"https://api.github.com/repos/python-diamond/Diamond/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python-diamond/Diamond/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python-diamond/Diamond/teams","hooks_url":"https://api.github.com/repos/python-diamond/Diamond/hooks","issue_events_url":"https://api.github.com/repos/python-diamond/Diamond/issues/events{/number}","events_url":"https://api.github.com/repos/python-diamond/Diamond/events","assignees_url":"https://api.github.com/repos/python-diamond/Diamond/assignees{/user}","branches_url":"https://api.github.com/repos/python-diamond/Diamond/branches{/branch}","tags_url":"https://api.github.com/repos/python-diamond/Diamond/tags","blobs_url":"https://api.github.com/repos/python-diamond/Diamond/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python-diamond/Diamond/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python-diamond/Diamond/git/refs{/sha}","trees_url":"https://api.github.com/repos/python-diamond/Diamond/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python-diamond/Diamond/statuses/{sha}","languages_url":"https://api.github.com/repos/python-diamond/Diamond/languages","stargazers_url":"https://api.github.com/repos/python-diamond/Diamond/stargazers","contributors_url":"https://api.github.com/repos/python-diamond/Diamond/contributors","subscribers_url":"https://api.github.com/repos/python-diamond/Diamond/subscribers","subscription_url":"https://api.github.com/repos/python-diamond/Diamond/subscription","commits_url":"https://api.github.com/repos/python-diamond/Diamond/commits{/sha}","git_commits_url":"https://api.github.com/repos/python-diamond/Diamond/git/commits{/sha}","comments_url":"https://api.github.com/repos/python-diamond/Diamond/comments{/number}","issue_comment_url":"https://api.github.com/repos/python-diamond/Diamond/issues/comments{/number}","contents_url":"https://api.github.com/repos/python-diamond/Diamond/contents/{+path}","compare_url":"https://api.github.com/repos/python-diamond/Diamond/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python-diamond/Diamond/merges","archive_url":"https://api.github.com/repos/python-diamond/Diamond/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python-diamond/Diamond/downloads","issues_url":"https://api.github.com/repos/python-diamond/Diamond/issues{/number}","pulls_url":"https://api.github.com/repos/python-diamond/Diamond/pulls{/number}","milestones_url":"https://api.github.com/repos/python-diamond/Diamond/milestones{/number}","notifications_url":"https://api.github.com/repos/python-diamond/Diamond/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python-diamond/Diamond/labels{/name}","releases_url":"https://api.github.com/repos/python-diamond/Diamond/releases{/id}","deployments_url":"https://api.github.com/repos/python-diamond/Diamond/deployments","created_at":"2013-10-11T23:32:13Z","updated_at":"2016-11-28T15:08:26Z","pushed_at":"2016-11-25T22:14:10Z","git_url":"git://github.com/python-diamond/Diamond.git","ssh_url":"git@github.com:python-diamond/Diamond.git","clone_url":"https://github.com/python-diamond/Diamond.git","svn_url":"https://github.com/python-diamond/Diamond","homepage":"http://diamond.readthedocs.org/","size":5541,"stargazers_count":754,"watchers_count":754,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":373,"mirror_url":null,"open_issues_count":210,"forks":373,"open_issues":210,"watchers":754,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python-diamond/Diamond/pulls/371"},"html":{"href":"https://github.com/python-diamond/Diamond/pull/371"},"issue":{"href":"https://api.github.com/repos/python-diamond/Diamond/issues/371"},"comments":{"href":"https://api.github.com/repos/python-diamond/Diamond/issues/371/comments"},"review_comments":{"href":"https://api.github.com/repos/python-diamond/Diamond/pulls/371/comments"},"review_comment":{"href":"https://api.github.com/repos/python-diamond/Diamond/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python-diamond/Diamond/pulls/371/commits"},"statuses":{"href":"https://api.github.com/repos/python-diamond/Diamond/statuses/e086759fb1bcdd6fe9939565a229ca9b1012b5d2"}}}}
{"actor":{"display_login":"shortdudey123"}}