{"action":"created","comment":{"url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/pulls/comments/36404698","id":36404698,"diff_hunk":"@@ -36,8 +36,10 @@ def check():\n     # Get instance status for the EC2 instance we are running on:\n     instance_status = connection.get_all_instance_status(instance_ids=[instance_id]).pop()\n \n-    if instance_status.events:\n-        print \"CRITICAL: instance %s has scheduled events: %s\" % (instance_id, instance_status.events)\n+    # Filter out schedueld events that already have been completed","path":"check_no_scheduled_ec2_events/__init__.py","position":6,"original_position":6,"commit_id":"ebcd7d8690d72abadd1a48cf348337ca82bd94ae","original_commit_id":"ebcd7d8690d72abadd1a48cf348337ca82bd94ae","user":{"login":"martinmelin","id":339682,"avatar_url":"https://avatars.githubusercontent.com/u/339682?v=3","gravatar_id":"","url":"https://api.github.com/users/martinmelin","html_url":"https://github.com/martinmelin","followers_url":"https://api.github.com/users/martinmelin/followers","following_url":"https://api.github.com/users/martinmelin/following{/other_user}","gists_url":"https://api.github.com/users/martinmelin/gists{/gist_id}","starred_url":"https://api.github.com/users/martinmelin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinmelin/subscriptions","organizations_url":"https://api.github.com/users/martinmelin/orgs","repos_url":"https://api.github.com/users/martinmelin/repos","events_url":"https://api.github.com/users/martinmelin/events{/privacy}","received_events_url":"https://api.github.com/users/martinmelin/received_events","type":"User","site_admin":false},"body":"`schedueld` -> `scheduled` :)","created_at":"2015-08-06T11:38:54Z","updated_at":"2015-08-06T11:38:54Z","html_url":"https://github.com/martinmelin/check_no_scheduled_ec2_events/pull/2#discussion_r36404698","pull_request_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/pulls/comments/36404698"},"html":{"href":"https://github.com/martinmelin/check_no_scheduled_ec2_events/pull/2#discussion_r36404698"},"pull_request":{"href":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/pulls/2","id":41777980,"html_url":"https://github.com/martinmelin/check_no_scheduled_ec2_events/pull/2","diff_url":"https://github.com/martinmelin/check_no_scheduled_ec2_events/pull/2.diff","patch_url":"https://github.com/martinmelin/check_no_scheduled_ec2_events/pull/2.patch","issue_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/issues/2","number":2,"state":"open","locked":false,"title":"Filter out already completed events","user":{"login":"tiwilliam","id":190349,"avatar_url":"https://avatars.githubusercontent.com/u/190349?v=3","gravatar_id":"","url":"https://api.github.com/users/tiwilliam","html_url":"https://github.com/tiwilliam","followers_url":"https://api.github.com/users/tiwilliam/followers","following_url":"https://api.github.com/users/tiwilliam/following{/other_user}","gists_url":"https://api.github.com/users/tiwilliam/gists{/gist_id}","starred_url":"https://api.github.com/users/tiwilliam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiwilliam/subscriptions","organizations_url":"https://api.github.com/users/tiwilliam/orgs","repos_url":"https://api.github.com/users/tiwilliam/repos","events_url":"https://api.github.com/users/tiwilliam/events{/privacy}","received_events_url":"https://api.github.com/users/tiwilliam/received_events","type":"User","site_admin":false},"body":"Will help you shut Nagios up.","created_at":"2015-08-06T11:33:30Z","updated_at":"2015-08-06T11:38:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"610ab32dc13970058dc67acc2c01aaec6e32f219","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/pulls/2/commits","review_comments_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/pulls/2/comments","review_comment_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/pulls/comments{/number}","comments_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/issues/2/comments","statuses_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/statuses/ebcd7d8690d72abadd1a48cf348337ca82bd94ae","head":{"label":"tiwilliam:patch-1","ref":"patch-1","sha":"ebcd7d8690d72abadd1a48cf348337ca82bd94ae","user":{"login":"tiwilliam","id":190349,"avatar_url":"https://avatars.githubusercontent.com/u/190349?v=3","gravatar_id":"","url":"https://api.github.com/users/tiwilliam","html_url":"https://github.com/tiwilliam","followers_url":"https://api.github.com/users/tiwilliam/followers","following_url":"https://api.github.com/users/tiwilliam/following{/other_user}","gists_url":"https://api.github.com/users/tiwilliam/gists{/gist_id}","starred_url":"https://api.github.com/users/tiwilliam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiwilliam/subscriptions","organizations_url":"https://api.github.com/users/tiwilliam/orgs","repos_url":"https://api.github.com/users/tiwilliam/repos","events_url":"https://api.github.com/users/tiwilliam/events{/privacy}","received_events_url":"https://api.github.com/users/tiwilliam/received_events","type":"User","site_admin":false},"repo":{"id":40301183,"name":"check_no_scheduled_ec2_events","full_name":"tiwilliam/check_no_scheduled_ec2_events","owner":{"login":"tiwilliam","id":190349,"avatar_url":"https://avatars.githubusercontent.com/u/190349?v=3","gravatar_id":"","url":"https://api.github.com/users/tiwilliam","html_url":"https://github.com/tiwilliam","followers_url":"https://api.github.com/users/tiwilliam/followers","following_url":"https://api.github.com/users/tiwilliam/following{/other_user}","gists_url":"https://api.github.com/users/tiwilliam/gists{/gist_id}","starred_url":"https://api.github.com/users/tiwilliam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiwilliam/subscriptions","organizations_url":"https://api.github.com/users/tiwilliam/orgs","repos_url":"https://api.github.com/users/tiwilliam/repos","events_url":"https://api.github.com/users/tiwilliam/events{/privacy}","received_events_url":"https://api.github.com/users/tiwilliam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tiwilliam/check_no_scheduled_ec2_events","description":"Nagios-style check if the current EC2 instance has any scheduled events","fork":true,"url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events","forks_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/forks","keys_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/teams","hooks_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/hooks","issue_events_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/issues/events{/number}","events_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/events","assignees_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/assignees{/user}","branches_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/branches{/branch}","tags_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/tags","blobs_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/git/refs{/sha}","trees_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/statuses/{sha}","languages_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/languages","stargazers_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/stargazers","contributors_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/contributors","subscribers_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/subscribers","subscription_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/subscription","commits_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/commits{/sha}","git_commits_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/git/commits{/sha}","comments_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/comments{/number}","issue_comment_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/issues/comments{/number}","contents_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/contents/{+path}","compare_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/merges","archive_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/downloads","issues_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/issues{/number}","pulls_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/pulls{/number}","milestones_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/milestones{/number}","notifications_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/labels{/name}","releases_url":"https://api.github.com/repos/tiwilliam/check_no_scheduled_ec2_events/releases{/id}","created_at":"2015-08-06T11:23:03Z","updated_at":"2015-08-06T11:23:03Z","pushed_at":"2015-08-06T11:34:29Z","git_url":"git://github.com/tiwilliam/check_no_scheduled_ec2_events.git","ssh_url":"git@github.com:tiwilliam/check_no_scheduled_ec2_events.git","clone_url":"https://github.com/tiwilliam/check_no_scheduled_ec2_events.git","svn_url":"https://github.com/tiwilliam/check_no_scheduled_ec2_events","homepage":null,"size":88,"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":"martinmelin:master","ref":"master","sha":"ce1aad9db8ea2365741fd748128d8c871ebaa208","user":{"login":"martinmelin","id":339682,"avatar_url":"https://avatars.githubusercontent.com/u/339682?v=3","gravatar_id":"","url":"https://api.github.com/users/martinmelin","html_url":"https://github.com/martinmelin","followers_url":"https://api.github.com/users/martinmelin/followers","following_url":"https://api.github.com/users/martinmelin/following{/other_user}","gists_url":"https://api.github.com/users/martinmelin/gists{/gist_id}","starred_url":"https://api.github.com/users/martinmelin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinmelin/subscriptions","organizations_url":"https://api.github.com/users/martinmelin/orgs","repos_url":"https://api.github.com/users/martinmelin/repos","events_url":"https://api.github.com/users/martinmelin/events{/privacy}","received_events_url":"https://api.github.com/users/martinmelin/received_events","type":"User","site_admin":false},"repo":{"id":24209564,"name":"check_no_scheduled_ec2_events","full_name":"martinmelin/check_no_scheduled_ec2_events","owner":{"login":"martinmelin","id":339682,"avatar_url":"https://avatars.githubusercontent.com/u/339682?v=3","gravatar_id":"","url":"https://api.github.com/users/martinmelin","html_url":"https://github.com/martinmelin","followers_url":"https://api.github.com/users/martinmelin/followers","following_url":"https://api.github.com/users/martinmelin/following{/other_user}","gists_url":"https://api.github.com/users/martinmelin/gists{/gist_id}","starred_url":"https://api.github.com/users/martinmelin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinmelin/subscriptions","organizations_url":"https://api.github.com/users/martinmelin/orgs","repos_url":"https://api.github.com/users/martinmelin/repos","events_url":"https://api.github.com/users/martinmelin/events{/privacy}","received_events_url":"https://api.github.com/users/martinmelin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/martinmelin/check_no_scheduled_ec2_events","description":"Nagios-style check if the current EC2 instance has any scheduled events","fork":false,"url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events","forks_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/forks","keys_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/keys{/key_id}","collaborators_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/teams","hooks_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/hooks","issue_events_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/issues/events{/number}","events_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/events","assignees_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/assignees{/user}","branches_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/branches{/branch}","tags_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/tags","blobs_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/git/refs{/sha}","trees_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/git/trees{/sha}","statuses_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/statuses/{sha}","languages_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/languages","stargazers_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/stargazers","contributors_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/contributors","subscribers_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/subscribers","subscription_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/subscription","commits_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/commits{/sha}","git_commits_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/git/commits{/sha}","comments_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/comments{/number}","issue_comment_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/issues/comments{/number}","contents_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/contents/{+path}","compare_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/compare/{base}...{head}","merges_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/merges","archive_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/downloads","issues_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/issues{/number}","pulls_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/pulls{/number}","milestones_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/milestones{/number}","notifications_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/labels{/name}","releases_url":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/releases{/id}","created_at":"2014-09-19T00:08:25Z","updated_at":"2014-09-19T07:32:44Z","pushed_at":"2015-08-06T11:34:29Z","git_url":"git://github.com/martinmelin/check_no_scheduled_ec2_events.git","ssh_url":"git@github.com:martinmelin/check_no_scheduled_ec2_events.git","clone_url":"https://github.com/martinmelin/check_no_scheduled_ec2_events.git","svn_url":"https://github.com/martinmelin/check_no_scheduled_ec2_events","homepage":null,"size":157,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/pulls/2"},"html":{"href":"https://github.com/martinmelin/check_no_scheduled_ec2_events/pull/2"},"issue":{"href":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/issues/2"},"comments":{"href":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/martinmelin/check_no_scheduled_ec2_events/statuses/ebcd7d8690d72abadd1a48cf348337ca82bd94ae"}}}}