{"action":"created","comment":{"url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/pulls/comments/29565171","id":29565171,"diff_hunk":"@@ -0,0 +1,40 @@\n+#!/usr/bin/env ruby\n+\n+$:.push(File.expand_path(File.join(__FILE__, '..', '..', 'lib')))\n+\n+require 'time'\n+require 'methadone'\n+require 'influx'\n+\n+include Methadone::Main\n+include Methadone::CLILogging\n+\n+main do\n+  raise \"Sort by must be one of frequency, percentile, or incident_key\" unless %w(frequency percentile incident_key).include?(options[:s])\n+  influxdb    = Influx::Db.new","path":"bin/alert_threshold_recommendations.rb","position":14,"original_position":14,"commit_id":"49e421c95542dbe9d5587d87065358b96762d0c2","original_commit_id":"49e421c95542dbe9d5587d87065358b96762d0c2","user":{"login":"auxesis","id":12306,"avatar_url":"https://avatars.githubusercontent.com/u/12306?v=3","gravatar_id":"","url":"https://api.github.com/users/auxesis","html_url":"https://github.com/auxesis","followers_url":"https://api.github.com/users/auxesis/followers","following_url":"https://api.github.com/users/auxesis/following{/other_user}","gists_url":"https://api.github.com/users/auxesis/gists{/gist_id}","starred_url":"https://api.github.com/users/auxesis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auxesis/subscriptions","organizations_url":"https://api.github.com/users/auxesis/orgs","repos_url":"https://api.github.com/users/auxesis/repos","events_url":"https://api.github.com/users/auxesis/events{/privacy}","received_events_url":"https://api.github.com/users/auxesis/received_events","type":"User","site_admin":false},"body":"Should remove excess whitespace here: \r\n\r\n``` ruby\r\ninfluxdb = Influx::Db.new\r\n```","created_at":"2015-05-04T04:02:50Z","updated_at":"2015-05-04T04:02:50Z","html_url":"https://github.com/bulletproofnetworks/pigeonhole/pull/13#discussion_r29565171","pull_request_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/pulls/comments/29565171"},"html":{"href":"https://github.com/bulletproofnetworks/pigeonhole/pull/13#discussion_r29565171"},"pull_request":{"href":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/pulls/13","id":34614207,"html_url":"https://github.com/bulletproofnetworks/pigeonhole/pull/13","diff_url":"https://github.com/bulletproofnetworks/pigeonhole/pull/13.diff","patch_url":"https://github.com/bulletproofnetworks/pigeonhole/pull/13.patch","issue_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/issues/13","number":13,"state":"open","locked":false,"title":"Add tool to suggest thresholds for reducing alert noise","user":{"login":"Hobbsee","id":3038925,"avatar_url":"https://avatars.githubusercontent.com/u/3038925?v=3","gravatar_id":"","url":"https://api.github.com/users/Hobbsee","html_url":"https://github.com/Hobbsee","followers_url":"https://api.github.com/users/Hobbsee/followers","following_url":"https://api.github.com/users/Hobbsee/following{/other_user}","gists_url":"https://api.github.com/users/Hobbsee/gists{/gist_id}","starred_url":"https://api.github.com/users/Hobbsee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hobbsee/subscriptions","organizations_url":"https://api.github.com/users/Hobbsee/orgs","repos_url":"https://api.github.com/users/Hobbsee/repos","events_url":"https://api.github.com/users/Hobbsee/events{/privacy}","received_events_url":"https://api.github.com/users/Hobbsee/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-05-04T03:43:37Z","updated_at":"2015-05-04T04:02:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4da7bcbc164b9b8cffec76a23ff20e893c0e3f1a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/pulls/13/commits","review_comments_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/pulls/13/comments","review_comment_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/issues/13/comments","statuses_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/statuses/49e421c95542dbe9d5587d87065358b96762d0c2","head":{"label":"bulletproofnetworks:thresholds","ref":"thresholds","sha":"49e421c95542dbe9d5587d87065358b96762d0c2","user":{"login":"bulletproofnetworks","id":413815,"avatar_url":"https://avatars.githubusercontent.com/u/413815?v=3","gravatar_id":"","url":"https://api.github.com/users/bulletproofnetworks","html_url":"https://github.com/bulletproofnetworks","followers_url":"https://api.github.com/users/bulletproofnetworks/followers","following_url":"https://api.github.com/users/bulletproofnetworks/following{/other_user}","gists_url":"https://api.github.com/users/bulletproofnetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/bulletproofnetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bulletproofnetworks/subscriptions","organizations_url":"https://api.github.com/users/bulletproofnetworks/orgs","repos_url":"https://api.github.com/users/bulletproofnetworks/repos","events_url":"https://api.github.com/users/bulletproofnetworks/events{/privacy}","received_events_url":"https://api.github.com/users/bulletproofnetworks/received_events","type":"Organization","site_admin":false},"repo":{"id":32840001,"name":"pigeonhole","full_name":"bulletproofnetworks/pigeonhole","owner":{"login":"bulletproofnetworks","id":413815,"avatar_url":"https://avatars.githubusercontent.com/u/413815?v=3","gravatar_id":"","url":"https://api.github.com/users/bulletproofnetworks","html_url":"https://github.com/bulletproofnetworks","followers_url":"https://api.github.com/users/bulletproofnetworks/followers","following_url":"https://api.github.com/users/bulletproofnetworks/following{/other_user}","gists_url":"https://api.github.com/users/bulletproofnetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/bulletproofnetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bulletproofnetworks/subscriptions","organizations_url":"https://api.github.com/users/bulletproofnetworks/orgs","repos_url":"https://api.github.com/users/bulletproofnetworks/repos","events_url":"https://api.github.com/users/bulletproofnetworks/events{/privacy}","received_events_url":"https://api.github.com/users/bulletproofnetworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bulletproofnetworks/pigeonhole","description":"A PagerDuty visualisation and categoration tool","fork":false,"url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole","forks_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/forks","keys_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/teams","hooks_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/hooks","issue_events_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/issues/events{/number}","events_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/events","assignees_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/assignees{/user}","branches_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/branches{/branch}","tags_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/tags","blobs_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/git/refs{/sha}","trees_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/statuses/{sha}","languages_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/languages","stargazers_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/stargazers","contributors_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/contributors","subscribers_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/subscribers","subscription_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/subscription","commits_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/commits{/sha}","git_commits_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/git/commits{/sha}","comments_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/comments{/number}","issue_comment_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/issues/comments{/number}","contents_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/contents/{+path}","compare_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/merges","archive_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/downloads","issues_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/issues{/number}","pulls_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/pulls{/number}","milestones_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/milestones{/number}","notifications_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/labels{/name}","releases_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/releases{/id}","created_at":"2015-03-25T03:18:05Z","updated_at":"2015-05-04T03:49:07Z","pushed_at":"2015-05-04T03:49:09Z","git_url":"git://github.com/bulletproofnetworks/pigeonhole.git","ssh_url":"git@github.com:bulletproofnetworks/pigeonhole.git","clone_url":"https://github.com/bulletproofnetworks/pigeonhole.git","svn_url":"https://github.com/bulletproofnetworks/pigeonhole","homepage":null,"size":856,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":10,"default_branch":"master"}},"base":{"label":"bulletproofnetworks:master","ref":"master","sha":"ac1fb7dfe68ff415feec025757e7afef8f420325","user":{"login":"bulletproofnetworks","id":413815,"avatar_url":"https://avatars.githubusercontent.com/u/413815?v=3","gravatar_id":"","url":"https://api.github.com/users/bulletproofnetworks","html_url":"https://github.com/bulletproofnetworks","followers_url":"https://api.github.com/users/bulletproofnetworks/followers","following_url":"https://api.github.com/users/bulletproofnetworks/following{/other_user}","gists_url":"https://api.github.com/users/bulletproofnetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/bulletproofnetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bulletproofnetworks/subscriptions","organizations_url":"https://api.github.com/users/bulletproofnetworks/orgs","repos_url":"https://api.github.com/users/bulletproofnetworks/repos","events_url":"https://api.github.com/users/bulletproofnetworks/events{/privacy}","received_events_url":"https://api.github.com/users/bulletproofnetworks/received_events","type":"Organization","site_admin":false},"repo":{"id":32840001,"name":"pigeonhole","full_name":"bulletproofnetworks/pigeonhole","owner":{"login":"bulletproofnetworks","id":413815,"avatar_url":"https://avatars.githubusercontent.com/u/413815?v=3","gravatar_id":"","url":"https://api.github.com/users/bulletproofnetworks","html_url":"https://github.com/bulletproofnetworks","followers_url":"https://api.github.com/users/bulletproofnetworks/followers","following_url":"https://api.github.com/users/bulletproofnetworks/following{/other_user}","gists_url":"https://api.github.com/users/bulletproofnetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/bulletproofnetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bulletproofnetworks/subscriptions","organizations_url":"https://api.github.com/users/bulletproofnetworks/orgs","repos_url":"https://api.github.com/users/bulletproofnetworks/repos","events_url":"https://api.github.com/users/bulletproofnetworks/events{/privacy}","received_events_url":"https://api.github.com/users/bulletproofnetworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bulletproofnetworks/pigeonhole","description":"A PagerDuty visualisation and categoration tool","fork":false,"url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole","forks_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/forks","keys_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/teams","hooks_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/hooks","issue_events_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/issues/events{/number}","events_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/events","assignees_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/assignees{/user}","branches_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/branches{/branch}","tags_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/tags","blobs_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/git/refs{/sha}","trees_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/statuses/{sha}","languages_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/languages","stargazers_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/stargazers","contributors_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/contributors","subscribers_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/subscribers","subscription_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/subscription","commits_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/commits{/sha}","git_commits_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/git/commits{/sha}","comments_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/comments{/number}","issue_comment_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/issues/comments{/number}","contents_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/contents/{+path}","compare_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/merges","archive_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/downloads","issues_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/issues{/number}","pulls_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/pulls{/number}","milestones_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/milestones{/number}","notifications_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/labels{/name}","releases_url":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/releases{/id}","created_at":"2015-03-25T03:18:05Z","updated_at":"2015-05-04T03:49:07Z","pushed_at":"2015-05-04T03:49:09Z","git_url":"git://github.com/bulletproofnetworks/pigeonhole.git","ssh_url":"git@github.com:bulletproofnetworks/pigeonhole.git","clone_url":"https://github.com/bulletproofnetworks/pigeonhole.git","svn_url":"https://github.com/bulletproofnetworks/pigeonhole","homepage":null,"size":856,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/pulls/13"},"html":{"href":"https://github.com/bulletproofnetworks/pigeonhole/pull/13"},"issue":{"href":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/issues/13"},"comments":{"href":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/bulletproofnetworks/pigeonhole/statuses/49e421c95542dbe9d5587d87065358b96762d0c2"}}}}