{"action":"created","issue":{"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-elasticsearch/issues/3","labels_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-elasticsearch/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-elasticsearch/issues/3/comments","events_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-elasticsearch/issues/3/events","html_url":"https://github.com/sensu-plugins/sensu-plugins-elasticsearch/pull/3","id":93431871,"number":3,"title":"Leveraging the elasticsearch gem.","user":{"login":"brendangibat","id":1784321,"avatar_url":"https://avatars.githubusercontent.com/u/1784321?v=3","gravatar_id":"","url":"https://api.github.com/users/brendangibat","html_url":"https://github.com/brendangibat","followers_url":"https://api.github.com/users/brendangibat/followers","following_url":"https://api.github.com/users/brendangibat/following{/other_user}","gists_url":"https://api.github.com/users/brendangibat/gists{/gist_id}","starred_url":"https://api.github.com/users/brendangibat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendangibat/subscriptions","organizations_url":"https://api.github.com/users/brendangibat/orgs","repos_url":"https://api.github.com/users/brendangibat/repos","events_url":"https://api.github.com/users/brendangibat/events{/privacy}","received_events_url":"https://api.github.com/users/brendangibat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-elasticsearch/labels/In%20Progress","name":"In Progress","color":"fad8c7"},{"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-elasticsearch/labels/Investigation%20Required","name":"Investigation Required","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"mattyjones","id":672940,"avatar_url":"https://avatars.githubusercontent.com/u/672940?v=3","gravatar_id":"","url":"https://api.github.com/users/mattyjones","html_url":"https://github.com/mattyjones","followers_url":"https://api.github.com/users/mattyjones/followers","following_url":"https://api.github.com/users/mattyjones/following{/other_user}","gists_url":"https://api.github.com/users/mattyjones/gists{/gist_id}","starred_url":"https://api.github.com/users/mattyjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattyjones/subscriptions","organizations_url":"https://api.github.com/users/mattyjones/orgs","repos_url":"https://api.github.com/users/mattyjones/repos","events_url":"https://api.github.com/users/mattyjones/events{/privacy}","received_events_url":"https://api.github.com/users/mattyjones/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-07-07T03:54:15Z","updated_at":"2015-10-08T19:03:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-elasticsearch/pulls/3","html_url":"https://github.com/sensu-plugins/sensu-plugins-elasticsearch/pull/3","diff_url":"https://github.com/sensu-plugins/sensu-plugins-elasticsearch/pull/3.diff","patch_url":"https://github.com/sensu-plugins/sensu-plugins-elasticsearch/pull/3.patch"},"body":"This adds elasticsearch query functionality, at least for a few basic cases but could be extended easily to as needed in a few other ways. I'm currently using it like this in sensu: \r\n\r\ncheck-es-query-count.rb -h elasticsearch.service.consul -q '*' --invert --types some_type -d 'log-index-%Y.%m.%d' --minutes-previous 30 -p 9200 -c 1 -w 100\r\n\r\nI could also move the other checks and metrics over to the gem."},"comment":{"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-elasticsearch/issues/comments/146656006","html_url":"https://github.com/sensu-plugins/sensu-plugins-elasticsearch/pull/3#issuecomment-146656006","issue_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-elasticsearch/issues/3","id":146656006,"user":{"login":"brendangibat","id":1784321,"avatar_url":"https://avatars.githubusercontent.com/u/1784321?v=3","gravatar_id":"","url":"https://api.github.com/users/brendangibat","html_url":"https://github.com/brendangibat","followers_url":"https://api.github.com/users/brendangibat/followers","following_url":"https://api.github.com/users/brendangibat/following{/other_user}","gists_url":"https://api.github.com/users/brendangibat/gists{/gist_id}","starred_url":"https://api.github.com/users/brendangibat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendangibat/subscriptions","organizations_url":"https://api.github.com/users/brendangibat/orgs","repos_url":"https://api.github.com/users/brendangibat/repos","events_url":"https://api.github.com/users/brendangibat/events{/privacy}","received_events_url":"https://api.github.com/users/brendangibat/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T19:03:45Z","updated_at":"2015-10-08T19:03:45Z","body":"Alright I've updated according to the requests and it's passing checks as of this comment"}}