{"action":"created","comment":{"url":"https://api.github.com/repos/influxdata/telegraf/pulls/comments/74676940","id":74676940,"diff_hunk":"@@ -0,0 +1,95 @@\n+package pusher\n+\n+import (\n+\t\"github.com/influxdata/telegraf\"\n+\t\"github.com/influxdata/telegraf/plugins/outputs\"\n+\t\"github.com/influxdata/telegraf/plugins/serializers\"\n+\t\"github.com/pusher/pusher-http-go\"\n+)\n+\n+type Pusher struct {\n+\tAppId       string `toml:\"app_id\"`\n+\tAppKey      string `toml:\"app_key\"`\n+\tAppSecret   string `toml:\"app_secret\"`\n+\tChannelName string `toml:\"channel_name\"`\n+\n+\tHost string `toml:\"host\"`\n+\n+\tSecure bool `toml:\"secure\"`\n+\n+\tclient *pusher.Client\n+\n+\tserializer serializers.Serializer\n+}\n+\n+var sampleConfig = `\n+  ## Pusher Credentials\n+  #app_id = \"\"\n+  #app_key = \"\"\n+  #app_secret = \"\"\n+  #channel_name = \"\"\n+  secure = true\n+  host = \"api.pusherapp.com\"","path":"plugins/outputs/pusher/pusher.go","position":32,"original_position":32,"commit_id":"3ada9a7ff5820cb2e4d712b6ce32c9ff52544fef","original_commit_id":"3ada9a7ff5820cb2e4d712b6ce32c9ff52544fef","user":{"login":"zdexter","id":588935,"avatar_url":"https://avatars.githubusercontent.com/u/588935?v=3","gravatar_id":"","url":"https://api.github.com/users/zdexter","html_url":"https://github.com/zdexter","followers_url":"https://api.github.com/users/zdexter/followers","following_url":"https://api.github.com/users/zdexter/following{/other_user}","gists_url":"https://api.github.com/users/zdexter/gists{/gist_id}","starred_url":"https://api.github.com/users/zdexter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdexter/subscriptions","organizations_url":"https://api.github.com/users/zdexter/orgs","repos_url":"https://api.github.com/users/zdexter/repos","events_url":"https://api.github.com/users/zdexter/events{/privacy}","received_events_url":"https://api.github.com/users/zdexter/received_events","type":"User","site_admin":false},"body":"there are different pusher.com clusters for various regions, so the pusher http client exposes a `Host` configuration option. I'll add a note","created_at":"2016-08-13T00:24:16Z","updated_at":"2016-08-13T00:24:16Z","html_url":"https://github.com/influxdata/telegraf/pull/1591#discussion_r74676940","pull_request_url":"https://api.github.com/repos/influxdata/telegraf/pulls/1591","_links":{"self":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/comments/74676940"},"html":{"href":"https://github.com/influxdata/telegraf/pull/1591#discussion_r74676940"},"pull_request":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/1591"}}},"pull_request":{"url":"https://api.github.com/repos/influxdata/telegraf/pulls/1591","id":80347275,"html_url":"https://github.com/influxdata/telegraf/pull/1591","diff_url":"https://github.com/influxdata/telegraf/pull/1591.diff","patch_url":"https://github.com/influxdata/telegraf/pull/1591.patch","issue_url":"https://api.github.com/repos/influxdata/telegraf/issues/1591","number":1591,"state":"open","locked":false,"title":"Add Pusher.com output","user":{"login":"zdexter","id":588935,"avatar_url":"https://avatars.githubusercontent.com/u/588935?v=3","gravatar_id":"","url":"https://api.github.com/users/zdexter","html_url":"https://github.com/zdexter","followers_url":"https://api.github.com/users/zdexter/followers","following_url":"https://api.github.com/users/zdexter/following{/other_user}","gists_url":"https://api.github.com/users/zdexter/gists{/gist_id}","starred_url":"https://api.github.com/users/zdexter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdexter/subscriptions","organizations_url":"https://api.github.com/users/zdexter/orgs","repos_url":"https://api.github.com/users/zdexter/repos","events_url":"https://api.github.com/users/zdexter/events{/privacy}","received_events_url":"https://api.github.com/users/zdexter/received_events","type":"User","site_admin":false},"body":"### Description\r\n\r\nThis change adds an output that sends metrics to a specified Pusher.com channel.\r\n\r\n### Required for all PRs:\r\n\r\n- [ ] CHANGELOG.md updated\r\n\r\nNot sure where to include this in `CHANGELOG.md` - please advise.\r\n\r\n- [x] Sign [CLA](https://influxdata.com/community/cla/) (if not already signed)\r\n- [x] README.md updated (if adding a new plugin)\r\n","created_at":"2016-08-06T18:28:14Z","updated_at":"2016-08-13T00:24:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7d6251f8b845c99bd35bce0779bbc509cd44704e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/influxdata/telegraf/pulls/1591/commits","review_comments_url":"https://api.github.com/repos/influxdata/telegraf/pulls/1591/comments","review_comment_url":"https://api.github.com/repos/influxdata/telegraf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/influxdata/telegraf/issues/1591/comments","statuses_url":"https://api.github.com/repos/influxdata/telegraf/statuses/3ada9a7ff5820cb2e4d712b6ce32c9ff52544fef","head":{"label":"zdexter:pusher-telegraf","ref":"pusher-telegraf","sha":"3ada9a7ff5820cb2e4d712b6ce32c9ff52544fef","user":{"login":"zdexter","id":588935,"avatar_url":"https://avatars.githubusercontent.com/u/588935?v=3","gravatar_id":"","url":"https://api.github.com/users/zdexter","html_url":"https://github.com/zdexter","followers_url":"https://api.github.com/users/zdexter/followers","following_url":"https://api.github.com/users/zdexter/following{/other_user}","gists_url":"https://api.github.com/users/zdexter/gists{/gist_id}","starred_url":"https://api.github.com/users/zdexter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdexter/subscriptions","organizations_url":"https://api.github.com/users/zdexter/orgs","repos_url":"https://api.github.com/users/zdexter/repos","events_url":"https://api.github.com/users/zdexter/events{/privacy}","received_events_url":"https://api.github.com/users/zdexter/received_events","type":"User","site_admin":false},"repo":{"id":63094070,"name":"telegraf","full_name":"zdexter/telegraf","owner":{"login":"zdexter","id":588935,"avatar_url":"https://avatars.githubusercontent.com/u/588935?v=3","gravatar_id":"","url":"https://api.github.com/users/zdexter","html_url":"https://github.com/zdexter","followers_url":"https://api.github.com/users/zdexter/followers","following_url":"https://api.github.com/users/zdexter/following{/other_user}","gists_url":"https://api.github.com/users/zdexter/gists{/gist_id}","starred_url":"https://api.github.com/users/zdexter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdexter/subscriptions","organizations_url":"https://api.github.com/users/zdexter/orgs","repos_url":"https://api.github.com/users/zdexter/repos","events_url":"https://api.github.com/users/zdexter/events{/privacy}","received_events_url":"https://api.github.com/users/zdexter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zdexter/telegraf","description":"The plugin-driven server agent for collecting & reporting metrics.","fork":true,"url":"https://api.github.com/repos/zdexter/telegraf","forks_url":"https://api.github.com/repos/zdexter/telegraf/forks","keys_url":"https://api.github.com/repos/zdexter/telegraf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zdexter/telegraf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zdexter/telegraf/teams","hooks_url":"https://api.github.com/repos/zdexter/telegraf/hooks","issue_events_url":"https://api.github.com/repos/zdexter/telegraf/issues/events{/number}","events_url":"https://api.github.com/repos/zdexter/telegraf/events","assignees_url":"https://api.github.com/repos/zdexter/telegraf/assignees{/user}","branches_url":"https://api.github.com/repos/zdexter/telegraf/branches{/branch}","tags_url":"https://api.github.com/repos/zdexter/telegraf/tags","blobs_url":"https://api.github.com/repos/zdexter/telegraf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zdexter/telegraf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zdexter/telegraf/git/refs{/sha}","trees_url":"https://api.github.com/repos/zdexter/telegraf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zdexter/telegraf/statuses/{sha}","languages_url":"https://api.github.com/repos/zdexter/telegraf/languages","stargazers_url":"https://api.github.com/repos/zdexter/telegraf/stargazers","contributors_url":"https://api.github.com/repos/zdexter/telegraf/contributors","subscribers_url":"https://api.github.com/repos/zdexter/telegraf/subscribers","subscription_url":"https://api.github.com/repos/zdexter/telegraf/subscription","commits_url":"https://api.github.com/repos/zdexter/telegraf/commits{/sha}","git_commits_url":"https://api.github.com/repos/zdexter/telegraf/git/commits{/sha}","comments_url":"https://api.github.com/repos/zdexter/telegraf/comments{/number}","issue_comment_url":"https://api.github.com/repos/zdexter/telegraf/issues/comments{/number}","contents_url":"https://api.github.com/repos/zdexter/telegraf/contents/{+path}","compare_url":"https://api.github.com/repos/zdexter/telegraf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zdexter/telegraf/merges","archive_url":"https://api.github.com/repos/zdexter/telegraf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zdexter/telegraf/downloads","issues_url":"https://api.github.com/repos/zdexter/telegraf/issues{/number}","pulls_url":"https://api.github.com/repos/zdexter/telegraf/pulls{/number}","milestones_url":"https://api.github.com/repos/zdexter/telegraf/milestones{/number}","notifications_url":"https://api.github.com/repos/zdexter/telegraf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zdexter/telegraf/labels{/name}","releases_url":"https://api.github.com/repos/zdexter/telegraf/releases{/id}","deployments_url":"https://api.github.com/repos/zdexter/telegraf/deployments","created_at":"2016-07-11T18:57:07Z","updated_at":"2016-07-11T18:57:10Z","pushed_at":"2016-08-06T18:32:22Z","git_url":"git://github.com/zdexter/telegraf.git","ssh_url":"git@github.com:zdexter/telegraf.git","clone_url":"https://github.com/zdexter/telegraf.git","svn_url":"https://github.com/zdexter/telegraf","homepage":"","size":10871,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"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":"influxdata:master","ref":"master","sha":"49988b15a30204ebcf9f453533dc06d65fb11dc4","user":{"login":"influxdata","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"repo":{"id":33258973,"name":"telegraf","full_name":"influxdata/telegraf","owner":{"login":"influxdata","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influxdata/telegraf","description":"The plugin-driven server agent for collecting & reporting metrics.","fork":false,"url":"https://api.github.com/repos/influxdata/telegraf","forks_url":"https://api.github.com/repos/influxdata/telegraf/forks","keys_url":"https://api.github.com/repos/influxdata/telegraf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdata/telegraf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdata/telegraf/teams","hooks_url":"https://api.github.com/repos/influxdata/telegraf/hooks","issue_events_url":"https://api.github.com/repos/influxdata/telegraf/issues/events{/number}","events_url":"https://api.github.com/repos/influxdata/telegraf/events","assignees_url":"https://api.github.com/repos/influxdata/telegraf/assignees{/user}","branches_url":"https://api.github.com/repos/influxdata/telegraf/branches{/branch}","tags_url":"https://api.github.com/repos/influxdata/telegraf/tags","blobs_url":"https://api.github.com/repos/influxdata/telegraf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdata/telegraf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdata/telegraf/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdata/telegraf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdata/telegraf/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdata/telegraf/languages","stargazers_url":"https://api.github.com/repos/influxdata/telegraf/stargazers","contributors_url":"https://api.github.com/repos/influxdata/telegraf/contributors","subscribers_url":"https://api.github.com/repos/influxdata/telegraf/subscribers","subscription_url":"https://api.github.com/repos/influxdata/telegraf/subscription","commits_url":"https://api.github.com/repos/influxdata/telegraf/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdata/telegraf/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdata/telegraf/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdata/telegraf/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdata/telegraf/contents/{+path}","compare_url":"https://api.github.com/repos/influxdata/telegraf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdata/telegraf/merges","archive_url":"https://api.github.com/repos/influxdata/telegraf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdata/telegraf/downloads","issues_url":"https://api.github.com/repos/influxdata/telegraf/issues{/number}","pulls_url":"https://api.github.com/repos/influxdata/telegraf/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdata/telegraf/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdata/telegraf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdata/telegraf/labels{/name}","releases_url":"https://api.github.com/repos/influxdata/telegraf/releases{/id}","deployments_url":"https://api.github.com/repos/influxdata/telegraf/deployments","created_at":"2015-04-01T16:28:44Z","updated_at":"2016-08-12T11:46:39Z","pushed_at":"2016-08-12T18:46:17Z","git_url":"git://github.com/influxdata/telegraf.git","ssh_url":"git@github.com:influxdata/telegraf.git","clone_url":"https://github.com/influxdata/telegraf.git","svn_url":"https://github.com/influxdata/telegraf","homepage":"","size":25823,"stargazers_count":1659,"watchers_count":1659,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":548,"mirror_url":null,"open_issues_count":196,"forks":548,"open_issues":196,"watchers":1659,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/1591"},"html":{"href":"https://github.com/influxdata/telegraf/pull/1591"},"issue":{"href":"https://api.github.com/repos/influxdata/telegraf/issues/1591"},"comments":{"href":"https://api.github.com/repos/influxdata/telegraf/issues/1591/comments"},"review_comments":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/1591/comments"},"review_comment":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/influxdata/telegraf/pulls/1591/commits"},"statuses":{"href":"https://api.github.com/repos/influxdata/telegraf/statuses/3ada9a7ff5820cb2e4d712b6ce32c9ff52544fef"}}}}
{"actor":{"display_login":"zdexter"}}