{"action":"created","comment":{"url":"https://api.github.com/repos/cloudwalkio/omg-monitor/pulls/comments/27621669","id":27621669,"diff_hunk":"@@ -41,7 +46,8 @@ def get_monitor(check_id, config):\n \n     if check_id not in current_monitors:\n         current_monitors[check_id] = new_monitor(check_id, config)\n-    return current_monitors[check_id]\n+        moving_averages[check_id] = deque([0.0] * 10, maxlen=10)","path":"monitor/run_monitor_dyn.py","position":27,"original_position":27,"commit_id":"8db499937c49a805b3fb22f3fab10357108661a5","original_commit_id":"8db499937c49a805b3fb22f3fab10357108661a5","user":{"login":"michaelneale","id":14976,"avatar_url":"https://avatars.githubusercontent.com/u/14976?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelneale","html_url":"https://github.com/michaelneale","followers_url":"https://api.github.com/users/michaelneale/followers","following_url":"https://api.github.com/users/michaelneale/following{/other_user}","gists_url":"https://api.github.com/users/michaelneale/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelneale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelneale/subscriptions","organizations_url":"https://api.github.com/users/michaelneale/orgs","repos_url":"https://api.github.com/users/michaelneale/repos","events_url":"https://api.github.com/users/michaelneale/events{/privacy}","received_events_url":"https://api.github.com/users/michaelneale/received_events","type":"User","site_admin":false},"body":"agree thats a good idea, will do that. ","created_at":"2015-04-01T23:22:36Z","updated_at":"2015-04-01T23:22:36Z","html_url":"https://github.com/cloudwalkio/omg-monitor/pull/46#discussion_r27621669","pull_request_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/cloudwalkio/omg-monitor/pulls/comments/27621669"},"html":{"href":"https://github.com/cloudwalkio/omg-monitor/pull/46#discussion_r27621669"},"pull_request":{"href":"https://api.github.com/repos/cloudwalkio/omg-monitor/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/cloudwalkio/omg-monitor/pulls/46","id":32389245,"html_url":"https://github.com/cloudwalkio/omg-monitor/pull/46","diff_url":"https://github.com/cloudwalkio/omg-monitor/pull/46.diff","patch_url":"https://github.com/cloudwalkio/omg-monitor/pull/46.patch","issue_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/issues/46","number":46,"state":"open","locked":false,"title":"change defaults and default smoothing for dynamic monitor","user":{"login":"michaelneale","id":14976,"avatar_url":"https://avatars.githubusercontent.com/u/14976?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelneale","html_url":"https://github.com/michaelneale","followers_url":"https://api.github.com/users/michaelneale/followers","following_url":"https://api.github.com/users/michaelneale/following{/other_user}","gists_url":"https://api.github.com/users/michaelneale/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelneale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelneale/subscriptions","organizations_url":"https://api.github.com/users/michaelneale/orgs","repos_url":"https://api.github.com/users/michaelneale/repos","events_url":"https://api.github.com/users/michaelneale/events{/privacy}","received_events_url":"https://api.github.com/users/michaelneale/received_events","type":"User","site_admin":false},"body":"Given little is known about the data - some more sensible defaults and smoothing is a good idea. ","created_at":"2015-04-01T04:52:14Z","updated_at":"2015-04-01T23:22:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8785bd585d6e373fbe12ea98bb509852df034ab0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/pulls/46/commits","review_comments_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/pulls/46/comments","review_comment_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/issues/46/comments","statuses_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/statuses/8db499937c49a805b3fb22f3fab10357108661a5","head":{"label":"michaelneale:master","ref":"master","sha":"8db499937c49a805b3fb22f3fab10357108661a5","user":{"login":"michaelneale","id":14976,"avatar_url":"https://avatars.githubusercontent.com/u/14976?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelneale","html_url":"https://github.com/michaelneale","followers_url":"https://api.github.com/users/michaelneale/followers","following_url":"https://api.github.com/users/michaelneale/following{/other_user}","gists_url":"https://api.github.com/users/michaelneale/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelneale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelneale/subscriptions","organizations_url":"https://api.github.com/users/michaelneale/orgs","repos_url":"https://api.github.com/users/michaelneale/repos","events_url":"https://api.github.com/users/michaelneale/events{/privacy}","received_events_url":"https://api.github.com/users/michaelneale/received_events","type":"User","site_admin":false},"repo":{"id":20244047,"name":"omg-monitor","full_name":"michaelneale/omg-monitor","owner":{"login":"michaelneale","id":14976,"avatar_url":"https://avatars.githubusercontent.com/u/14976?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelneale","html_url":"https://github.com/michaelneale","followers_url":"https://api.github.com/users/michaelneale/followers","following_url":"https://api.github.com/users/michaelneale/following{/other_user}","gists_url":"https://api.github.com/users/michaelneale/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelneale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelneale/subscriptions","organizations_url":"https://api.github.com/users/michaelneale/orgs","repos_url":"https://api.github.com/users/michaelneale/repos","events_url":"https://api.github.com/users/michaelneale/events{/privacy}","received_events_url":"https://api.github.com/users/michaelneale/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michaelneale/omg-monitor","description":"A Docker container that runs NuPIC to catch anomalies in response times of servers monitored by Pingdom.","fork":true,"url":"https://api.github.com/repos/michaelneale/omg-monitor","forks_url":"https://api.github.com/repos/michaelneale/omg-monitor/forks","keys_url":"https://api.github.com/repos/michaelneale/omg-monitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michaelneale/omg-monitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michaelneale/omg-monitor/teams","hooks_url":"https://api.github.com/repos/michaelneale/omg-monitor/hooks","issue_events_url":"https://api.github.com/repos/michaelneale/omg-monitor/issues/events{/number}","events_url":"https://api.github.com/repos/michaelneale/omg-monitor/events","assignees_url":"https://api.github.com/repos/michaelneale/omg-monitor/assignees{/user}","branches_url":"https://api.github.com/repos/michaelneale/omg-monitor/branches{/branch}","tags_url":"https://api.github.com/repos/michaelneale/omg-monitor/tags","blobs_url":"https://api.github.com/repos/michaelneale/omg-monitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michaelneale/omg-monitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michaelneale/omg-monitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/michaelneale/omg-monitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michaelneale/omg-monitor/statuses/{sha}","languages_url":"https://api.github.com/repos/michaelneale/omg-monitor/languages","stargazers_url":"https://api.github.com/repos/michaelneale/omg-monitor/stargazers","contributors_url":"https://api.github.com/repos/michaelneale/omg-monitor/contributors","subscribers_url":"https://api.github.com/repos/michaelneale/omg-monitor/subscribers","subscription_url":"https://api.github.com/repos/michaelneale/omg-monitor/subscription","commits_url":"https://api.github.com/repos/michaelneale/omg-monitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/michaelneale/omg-monitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/michaelneale/omg-monitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/michaelneale/omg-monitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/michaelneale/omg-monitor/contents/{+path}","compare_url":"https://api.github.com/repos/michaelneale/omg-monitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michaelneale/omg-monitor/merges","archive_url":"https://api.github.com/repos/michaelneale/omg-monitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michaelneale/omg-monitor/downloads","issues_url":"https://api.github.com/repos/michaelneale/omg-monitor/issues{/number}","pulls_url":"https://api.github.com/repos/michaelneale/omg-monitor/pulls{/number}","milestones_url":"https://api.github.com/repos/michaelneale/omg-monitor/milestones{/number}","notifications_url":"https://api.github.com/repos/michaelneale/omg-monitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michaelneale/omg-monitor/labels{/name}","releases_url":"https://api.github.com/repos/michaelneale/omg-monitor/releases{/id}","created_at":"2014-05-28T03:33:23Z","updated_at":"2015-04-01T04:51:00Z","pushed_at":"2015-04-01T04:51:00Z","git_url":"git://github.com/michaelneale/omg-monitor.git","ssh_url":"git@github.com:michaelneale/omg-monitor.git","clone_url":"https://github.com/michaelneale/omg-monitor.git","svn_url":"https://github.com/michaelneale/omg-monitor","homepage":null,"size":2280,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"cloudwalkio:master","ref":"master","sha":"dac7df58d7cc2743fc3946ed3317b22184c34dd1","user":{"login":"cloudwalkio","id":6581007,"avatar_url":"https://avatars.githubusercontent.com/u/6581007?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudwalkio","html_url":"https://github.com/cloudwalkio","followers_url":"https://api.github.com/users/cloudwalkio/followers","following_url":"https://api.github.com/users/cloudwalkio/following{/other_user}","gists_url":"https://api.github.com/users/cloudwalkio/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudwalkio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudwalkio/subscriptions","organizations_url":"https://api.github.com/users/cloudwalkio/orgs","repos_url":"https://api.github.com/users/cloudwalkio/repos","events_url":"https://api.github.com/users/cloudwalkio/events{/privacy}","received_events_url":"https://api.github.com/users/cloudwalkio/received_events","type":"Organization","site_admin":false},"repo":{"id":14757566,"name":"omg-monitor","full_name":"cloudwalkio/omg-monitor","owner":{"login":"cloudwalkio","id":6581007,"avatar_url":"https://avatars.githubusercontent.com/u/6581007?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudwalkio","html_url":"https://github.com/cloudwalkio","followers_url":"https://api.github.com/users/cloudwalkio/followers","following_url":"https://api.github.com/users/cloudwalkio/following{/other_user}","gists_url":"https://api.github.com/users/cloudwalkio/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudwalkio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudwalkio/subscriptions","organizations_url":"https://api.github.com/users/cloudwalkio/orgs","repos_url":"https://api.github.com/users/cloudwalkio/repos","events_url":"https://api.github.com/users/cloudwalkio/events{/privacy}","received_events_url":"https://api.github.com/users/cloudwalkio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudwalkio/omg-monitor","description":"A Docker container that runs NuPIC to catch anomalies in response times of servers monitored by Pingdom.","fork":false,"url":"https://api.github.com/repos/cloudwalkio/omg-monitor","forks_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/forks","keys_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/teams","hooks_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/hooks","issue_events_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/issues/events{/number}","events_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/events","assignees_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/assignees{/user}","branches_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/branches{/branch}","tags_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/tags","blobs_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/languages","stargazers_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/stargazers","contributors_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/contributors","subscribers_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/subscribers","subscription_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/subscription","commits_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/contents/{+path}","compare_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/merges","archive_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/downloads","issues_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/issues{/number}","pulls_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/labels{/name}","releases_url":"https://api.github.com/repos/cloudwalkio/omg-monitor/releases{/id}","created_at":"2013-11-27T19:56:14Z","updated_at":"2015-03-23T14:29:10Z","pushed_at":"2015-04-01T04:52:14Z","git_url":"git://github.com/cloudwalkio/omg-monitor.git","ssh_url":"git@github.com:cloudwalkio/omg-monitor.git","clone_url":"https://github.com/cloudwalkio/omg-monitor.git","svn_url":"https://github.com/cloudwalkio/omg-monitor","homepage":null,"size":2095,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudwalkio/omg-monitor/pulls/46"},"html":{"href":"https://github.com/cloudwalkio/omg-monitor/pull/46"},"issue":{"href":"https://api.github.com/repos/cloudwalkio/omg-monitor/issues/46"},"comments":{"href":"https://api.github.com/repos/cloudwalkio/omg-monitor/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudwalkio/omg-monitor/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudwalkio/omg-monitor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudwalkio/omg-monitor/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/cloudwalkio/omg-monitor/statuses/8db499937c49a805b3fb22f3fab10357108661a5"}}}}