{"action":"created","comment":{"url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/comments/41906484","id":41906484,"diff_hunk":"@@ -0,0 +1,102 @@\n+#!/usr/bin/env ruby\n+\n+require \"#{File.dirname(__FILE__)}/base\"\n+\n+class Hipchat < BaseHandler\n+  def handle\n+    timeout_and_retry do\n+      case @event['check']['status'].to_i","path":"files/hipchat.rb","position":null,"original_position":8,"commit_id":"41b8ab30f325f58213945a5ea9583a57635178c3","original_commit_id":"8226be074eb1c9a826bf45ed44c4791a40442dd5","user":{"login":"fessyfoo","id":1090063,"avatar_url":"https://avatars.githubusercontent.com/u/1090063?v=3","gravatar_id":"","url":"https://api.github.com/users/fessyfoo","html_url":"https://github.com/fessyfoo","followers_url":"https://api.github.com/users/fessyfoo/followers","following_url":"https://api.github.com/users/fessyfoo/following{/other_user}","gists_url":"https://api.github.com/users/fessyfoo/gists{/gist_id}","starred_url":"https://api.github.com/users/fessyfoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fessyfoo/subscriptions","organizations_url":"https://api.github.com/users/fessyfoo/orgs","repos_url":"https://api.github.com/users/fessyfoo/repos","events_url":"https://api.github.com/users/fessyfoo/events{/privacy}","received_events_url":"https://api.github.com/users/fessyfoo/received_events","type":"User","site_admin":false},"body":"aside: i don't think this really changes the behavior for hipchat_handler the way it did for pager duty. \r\n\r\ni made the change anyway for consistency.   ","created_at":"2015-10-13T18:37:42Z","updated_at":"2015-10-13T18:37:42Z","html_url":"https://github.com/Yelp/sensu_handlers/pull/69#discussion_r41906484","pull_request_url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/69","_links":{"self":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/comments/41906484"},"html":{"href":"https://github.com/Yelp/sensu_handlers/pull/69#discussion_r41906484"},"pull_request":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/69","id":46696482,"html_url":"https://github.com/Yelp/sensu_handlers/pull/69","diff_url":"https://github.com/Yelp/sensu_handlers/pull/69.diff","patch_url":"https://github.com/Yelp/sensu_handlers/pull/69.patch","issue_url":"https://api.github.com/repos/Yelp/sensu_handlers/issues/69","number":69,"state":"open","locked":false,"title":"add hipchat handler","user":{"login":"fessyfoo","id":1090063,"avatar_url":"https://avatars.githubusercontent.com/u/1090063?v=3","gravatar_id":"","url":"https://api.github.com/users/fessyfoo","html_url":"https://github.com/fessyfoo","followers_url":"https://api.github.com/users/fessyfoo/followers","following_url":"https://api.github.com/users/fessyfoo/following{/other_user}","gists_url":"https://api.github.com/users/fessyfoo/gists{/gist_id}","starred_url":"https://api.github.com/users/fessyfoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fessyfoo/subscriptions","organizations_url":"https://api.github.com/users/fessyfoo/orgs","repos_url":"https://api.github.com/users/fessyfoo/repos","events_url":"https://api.github.com/users/fessyfoo/events{/privacy}","received_events_url":"https://api.github.com/users/fessyfoo/received_events","type":"User","site_admin":false},"body":"feedback welcome. ","created_at":"2015-10-03T01:10:36Z","updated_at":"2015-10-13T18:37:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0c0a14c512928fdd255466482da65f8264eca00","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/69/commits","review_comments_url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/69/comments","review_comment_url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yelp/sensu_handlers/issues/69/comments","statuses_url":"https://api.github.com/repos/Yelp/sensu_handlers/statuses/41b8ab30f325f58213945a5ea9583a57635178c3","head":{"label":"fessyfoo:add-hipchat-handler","ref":"add-hipchat-handler","sha":"41b8ab30f325f58213945a5ea9583a57635178c3","user":{"login":"fessyfoo","id":1090063,"avatar_url":"https://avatars.githubusercontent.com/u/1090063?v=3","gravatar_id":"","url":"https://api.github.com/users/fessyfoo","html_url":"https://github.com/fessyfoo","followers_url":"https://api.github.com/users/fessyfoo/followers","following_url":"https://api.github.com/users/fessyfoo/following{/other_user}","gists_url":"https://api.github.com/users/fessyfoo/gists{/gist_id}","starred_url":"https://api.github.com/users/fessyfoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fessyfoo/subscriptions","organizations_url":"https://api.github.com/users/fessyfoo/orgs","repos_url":"https://api.github.com/users/fessyfoo/repos","events_url":"https://api.github.com/users/fessyfoo/events{/privacy}","received_events_url":"https://api.github.com/users/fessyfoo/received_events","type":"User","site_admin":false},"repo":{"id":41769234,"name":"sensu_handlers","full_name":"fessyfoo/sensu_handlers","owner":{"login":"fessyfoo","id":1090063,"avatar_url":"https://avatars.githubusercontent.com/u/1090063?v=3","gravatar_id":"","url":"https://api.github.com/users/fessyfoo","html_url":"https://github.com/fessyfoo","followers_url":"https://api.github.com/users/fessyfoo/followers","following_url":"https://api.github.com/users/fessyfoo/following{/other_user}","gists_url":"https://api.github.com/users/fessyfoo/gists{/gist_id}","starred_url":"https://api.github.com/users/fessyfoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fessyfoo/subscriptions","organizations_url":"https://api.github.com/users/fessyfoo/orgs","repos_url":"https://api.github.com/users/fessyfoo/repos","events_url":"https://api.github.com/users/fessyfoo/events{/privacy}","received_events_url":"https://api.github.com/users/fessyfoo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fessyfoo/sensu_handlers","description":"Custom Sensu Handlers to support a multi-tenant environment, allowing checks themselves to emit the type of handler behavior they need in the event json","fork":true,"url":"https://api.github.com/repos/fessyfoo/sensu_handlers","forks_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/forks","keys_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/teams","hooks_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/hooks","issue_events_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/issues/events{/number}","events_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/events","assignees_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/assignees{/user}","branches_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/branches{/branch}","tags_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/tags","blobs_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/git/refs{/sha}","trees_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/statuses/{sha}","languages_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/languages","stargazers_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/stargazers","contributors_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/contributors","subscribers_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/subscribers","subscription_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/subscription","commits_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/commits{/sha}","git_commits_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/git/commits{/sha}","comments_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/comments{/number}","issue_comment_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/issues/comments{/number}","contents_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/contents/{+path}","compare_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/merges","archive_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/downloads","issues_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/issues{/number}","pulls_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/pulls{/number}","milestones_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/milestones{/number}","notifications_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/labels{/name}","releases_url":"https://api.github.com/repos/fessyfoo/sensu_handlers/releases{/id}","created_at":"2015-09-01T23:48:39Z","updated_at":"2015-09-02T00:01:38Z","pushed_at":"2015-10-13T18:22:06Z","git_url":"git://github.com/fessyfoo/sensu_handlers.git","ssh_url":"git@github.com:fessyfoo/sensu_handlers.git","clone_url":"https://github.com/fessyfoo/sensu_handlers.git","svn_url":"https://github.com/fessyfoo/sensu_handlers","homepage":null,"size":356,"stargazers_count":0,"watchers_count":0,"language":null,"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":"Yelp:master","ref":"master","sha":"55ce63b6b2a378e81fecea66ae4db508936ee43f","user":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":22772241,"name":"sensu_handlers","full_name":"Yelp/sensu_handlers","owner":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/sensu_handlers","description":"Custom Sensu Handlers to support a multi-tenant environment, allowing checks themselves to emit the type of handler behavior they need in the event json","fork":false,"url":"https://api.github.com/repos/Yelp/sensu_handlers","forks_url":"https://api.github.com/repos/Yelp/sensu_handlers/forks","keys_url":"https://api.github.com/repos/Yelp/sensu_handlers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/sensu_handlers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/sensu_handlers/teams","hooks_url":"https://api.github.com/repos/Yelp/sensu_handlers/hooks","issue_events_url":"https://api.github.com/repos/Yelp/sensu_handlers/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/sensu_handlers/events","assignees_url":"https://api.github.com/repos/Yelp/sensu_handlers/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/sensu_handlers/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/sensu_handlers/tags","blobs_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/sensu_handlers/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/sensu_handlers/languages","stargazers_url":"https://api.github.com/repos/Yelp/sensu_handlers/stargazers","contributors_url":"https://api.github.com/repos/Yelp/sensu_handlers/contributors","subscribers_url":"https://api.github.com/repos/Yelp/sensu_handlers/subscribers","subscription_url":"https://api.github.com/repos/Yelp/sensu_handlers/subscription","commits_url":"https://api.github.com/repos/Yelp/sensu_handlers/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/sensu_handlers/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/sensu_handlers/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/sensu_handlers/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/sensu_handlers/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/sensu_handlers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/sensu_handlers/merges","archive_url":"https://api.github.com/repos/Yelp/sensu_handlers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/sensu_handlers/downloads","issues_url":"https://api.github.com/repos/Yelp/sensu_handlers/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/sensu_handlers/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/sensu_handlers/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/sensu_handlers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/sensu_handlers/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/sensu_handlers/releases{/id}","created_at":"2014-08-08T21:35:51Z","updated_at":"2015-10-02T01:54:07Z","pushed_at":"2015-10-13T18:22:06Z","git_url":"git://github.com/Yelp/sensu_handlers.git","ssh_url":"git@github.com:Yelp/sensu_handlers.git","clone_url":"https://github.com/Yelp/sensu_handlers.git","svn_url":"https://github.com/Yelp/sensu_handlers","homepage":null,"size":859,"stargazers_count":31,"watchers_count":31,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":12,"forks":18,"open_issues":12,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/69"},"html":{"href":"https://github.com/Yelp/sensu_handlers/pull/69"},"issue":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/issues/69"},"comments":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/Yelp/sensu_handlers/statuses/41b8ab30f325f58213945a5ea9583a57635178c3"}}}}