{"action":"opened","number":261,"pull_request":{"url":"https://api.github.com/repos/Yelp/elastalert/pulls/261","id":46730324,"html_url":"https://github.com/Yelp/elastalert/pull/261","diff_url":"https://github.com/Yelp/elastalert/pull/261.diff","patch_url":"https://github.com/Yelp/elastalert/pull/261.patch","issue_url":"https://api.github.com/repos/Yelp/elastalert/issues/261","number":261,"state":"open","locked":false,"title":"support aws sns as alert method","user":{"login":"ltagliamonte","id":10259338,"avatar_url":"https://avatars.githubusercontent.com/u/10259338?v=3","gravatar_id":"","url":"https://api.github.com/users/ltagliamonte","html_url":"https://github.com/ltagliamonte","followers_url":"https://api.github.com/users/ltagliamonte/followers","following_url":"https://api.github.com/users/ltagliamonte/following{/other_user}","gists_url":"https://api.github.com/users/ltagliamonte/gists{/gist_id}","starred_url":"https://api.github.com/users/ltagliamonte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltagliamonte/subscriptions","organizations_url":"https://api.github.com/users/ltagliamonte/orgs","repos_url":"https://api.github.com/users/ltagliamonte/repos","events_url":"https://api.github.com/users/ltagliamonte/events{/privacy}","received_events_url":"https://api.github.com/users/ltagliamonte/received_events","type":"User","site_admin":false},"body":"This PR add the support for AWS SNS service, i use the following test file:\r\n\r\ntest-rule.yaml\r\n\r\n```\r\nname: test rule\r\nes_host: localhost\r\nes_port: 9200\r\nindex: doesnmatter\r\ntype: any\r\nalert: sns\r\naws_access_key: \"XXXXXXX\"\r\naws_secret_key: \"XXXXXXXX\"\r\nsns_topic_arn: \"arn:aws:sns:us-east-1:XXXXX\"\r\n```\r\n\r\ndata.json\r\n\r\n```\r\n[\r\n {\"@timestamp\": \"2015-10-01\",\r\n  \"foo\": \"bar\"}\r\n]\r\n```","created_at":"2015-10-04T18:43:07Z","updated_at":"2015-10-04T18:43:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Yelp/elastalert/pulls/261/commits","review_comments_url":"https://api.github.com/repos/Yelp/elastalert/pulls/261/comments","review_comment_url":"https://api.github.com/repos/Yelp/elastalert/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yelp/elastalert/issues/261/comments","statuses_url":"https://api.github.com/repos/Yelp/elastalert/statuses/85e9983373685589e3e551ba5f209ffc750833b0","head":{"label":"ltagliamonte:sns-support","ref":"sns-support","sha":"85e9983373685589e3e551ba5f209ffc750833b0","user":{"login":"ltagliamonte","id":10259338,"avatar_url":"https://avatars.githubusercontent.com/u/10259338?v=3","gravatar_id":"","url":"https://api.github.com/users/ltagliamonte","html_url":"https://github.com/ltagliamonte","followers_url":"https://api.github.com/users/ltagliamonte/followers","following_url":"https://api.github.com/users/ltagliamonte/following{/other_user}","gists_url":"https://api.github.com/users/ltagliamonte/gists{/gist_id}","starred_url":"https://api.github.com/users/ltagliamonte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltagliamonte/subscriptions","organizations_url":"https://api.github.com/users/ltagliamonte/orgs","repos_url":"https://api.github.com/users/ltagliamonte/repos","events_url":"https://api.github.com/users/ltagliamonte/events{/privacy}","received_events_url":"https://api.github.com/users/ltagliamonte/received_events","type":"User","site_admin":false},"repo":{"id":43240721,"name":"elastalert","full_name":"ltagliamonte/elastalert","owner":{"login":"ltagliamonte","id":10259338,"avatar_url":"https://avatars.githubusercontent.com/u/10259338?v=3","gravatar_id":"","url":"https://api.github.com/users/ltagliamonte","html_url":"https://github.com/ltagliamonte","followers_url":"https://api.github.com/users/ltagliamonte/followers","following_url":"https://api.github.com/users/ltagliamonte/following{/other_user}","gists_url":"https://api.github.com/users/ltagliamonte/gists{/gist_id}","starred_url":"https://api.github.com/users/ltagliamonte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltagliamonte/subscriptions","organizations_url":"https://api.github.com/users/ltagliamonte/orgs","repos_url":"https://api.github.com/users/ltagliamonte/repos","events_url":"https://api.github.com/users/ltagliamonte/events{/privacy}","received_events_url":"https://api.github.com/users/ltagliamonte/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ltagliamonte/elastalert","description":"Easy & Flexible Alerting With ElasticSearch","fork":true,"url":"https://api.github.com/repos/ltagliamonte/elastalert","forks_url":"https://api.github.com/repos/ltagliamonte/elastalert/forks","keys_url":"https://api.github.com/repos/ltagliamonte/elastalert/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ltagliamonte/elastalert/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ltagliamonte/elastalert/teams","hooks_url":"https://api.github.com/repos/ltagliamonte/elastalert/hooks","issue_events_url":"https://api.github.com/repos/ltagliamonte/elastalert/issues/events{/number}","events_url":"https://api.github.com/repos/ltagliamonte/elastalert/events","assignees_url":"https://api.github.com/repos/ltagliamonte/elastalert/assignees{/user}","branches_url":"https://api.github.com/repos/ltagliamonte/elastalert/branches{/branch}","tags_url":"https://api.github.com/repos/ltagliamonte/elastalert/tags","blobs_url":"https://api.github.com/repos/ltagliamonte/elastalert/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ltagliamonte/elastalert/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ltagliamonte/elastalert/git/refs{/sha}","trees_url":"https://api.github.com/repos/ltagliamonte/elastalert/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ltagliamonte/elastalert/statuses/{sha}","languages_url":"https://api.github.com/repos/ltagliamonte/elastalert/languages","stargazers_url":"https://api.github.com/repos/ltagliamonte/elastalert/stargazers","contributors_url":"https://api.github.com/repos/ltagliamonte/elastalert/contributors","subscribers_url":"https://api.github.com/repos/ltagliamonte/elastalert/subscribers","subscription_url":"https://api.github.com/repos/ltagliamonte/elastalert/subscription","commits_url":"https://api.github.com/repos/ltagliamonte/elastalert/commits{/sha}","git_commits_url":"https://api.github.com/repos/ltagliamonte/elastalert/git/commits{/sha}","comments_url":"https://api.github.com/repos/ltagliamonte/elastalert/comments{/number}","issue_comment_url":"https://api.github.com/repos/ltagliamonte/elastalert/issues/comments{/number}","contents_url":"https://api.github.com/repos/ltagliamonte/elastalert/contents/{+path}","compare_url":"https://api.github.com/repos/ltagliamonte/elastalert/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ltagliamonte/elastalert/merges","archive_url":"https://api.github.com/repos/ltagliamonte/elastalert/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ltagliamonte/elastalert/downloads","issues_url":"https://api.github.com/repos/ltagliamonte/elastalert/issues{/number}","pulls_url":"https://api.github.com/repos/ltagliamonte/elastalert/pulls{/number}","milestones_url":"https://api.github.com/repos/ltagliamonte/elastalert/milestones{/number}","notifications_url":"https://api.github.com/repos/ltagliamonte/elastalert/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ltagliamonte/elastalert/labels{/name}","releases_url":"https://api.github.com/repos/ltagliamonte/elastalert/releases{/id}","created_at":"2015-09-27T09:16:29Z","updated_at":"2015-09-27T09:16:30Z","pushed_at":"2015-10-04T18:39:47Z","git_url":"git://github.com/ltagliamonte/elastalert.git","ssh_url":"git@github.com:ltagliamonte/elastalert.git","clone_url":"https://github.com/ltagliamonte/elastalert.git","svn_url":"https://github.com/ltagliamonte/elastalert","homepage":"https://elastalert.readthedocs.org","size":2013,"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":"Yelp:master","ref":"master","sha":"1ee2db7cc9bec7b90e1118492fa285d2a88f1f81","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":27091760,"name":"elastalert","full_name":"Yelp/elastalert","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/elastalert","description":"Easy & Flexible Alerting With ElasticSearch","fork":false,"url":"https://api.github.com/repos/Yelp/elastalert","forks_url":"https://api.github.com/repos/Yelp/elastalert/forks","keys_url":"https://api.github.com/repos/Yelp/elastalert/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/elastalert/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/elastalert/teams","hooks_url":"https://api.github.com/repos/Yelp/elastalert/hooks","issue_events_url":"https://api.github.com/repos/Yelp/elastalert/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/elastalert/events","assignees_url":"https://api.github.com/repos/Yelp/elastalert/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/elastalert/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/elastalert/tags","blobs_url":"https://api.github.com/repos/Yelp/elastalert/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/elastalert/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/elastalert/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/elastalert/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/elastalert/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/elastalert/languages","stargazers_url":"https://api.github.com/repos/Yelp/elastalert/stargazers","contributors_url":"https://api.github.com/repos/Yelp/elastalert/contributors","subscribers_url":"https://api.github.com/repos/Yelp/elastalert/subscribers","subscription_url":"https://api.github.com/repos/Yelp/elastalert/subscription","commits_url":"https://api.github.com/repos/Yelp/elastalert/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/elastalert/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/elastalert/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/elastalert/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/elastalert/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/elastalert/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/elastalert/merges","archive_url":"https://api.github.com/repos/Yelp/elastalert/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/elastalert/downloads","issues_url":"https://api.github.com/repos/Yelp/elastalert/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/elastalert/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/elastalert/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/elastalert/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/elastalert/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/elastalert/releases{/id}","created_at":"2014-11-24T19:39:19Z","updated_at":"2015-10-04T13:00:26Z","pushed_at":"2015-09-30T00:42:57Z","git_url":"git://github.com/Yelp/elastalert.git","ssh_url":"git@github.com:Yelp/elastalert.git","clone_url":"https://github.com/Yelp/elastalert.git","svn_url":"https://github.com/Yelp/elastalert","homepage":"https://elastalert.readthedocs.org","size":2100,"stargazers_count":318,"watchers_count":318,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":79,"mirror_url":null,"open_issues_count":48,"forks":79,"open_issues":48,"watchers":318,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yelp/elastalert/pulls/261"},"html":{"href":"https://github.com/Yelp/elastalert/pull/261"},"issue":{"href":"https://api.github.com/repos/Yelp/elastalert/issues/261"},"comments":{"href":"https://api.github.com/repos/Yelp/elastalert/issues/261/comments"},"review_comments":{"href":"https://api.github.com/repos/Yelp/elastalert/pulls/261/comments"},"review_comment":{"href":"https://api.github.com/repos/Yelp/elastalert/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yelp/elastalert/pulls/261/commits"},"statuses":{"href":"https://api.github.com/repos/Yelp/elastalert/statuses/85e9983373685589e3e551ba5f209ffc750833b0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":36,"deletions":1,"changed_files":3}}