{"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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-07T03:54:15Z","updated_at":"2015-07-07T03:59:33Z","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/119067315","html_url":"https://github.com/sensu-plugins/sensu-plugins-elasticsearch/pull/3#issuecomment-119067315","issue_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-elasticsearch/issues/3","id":119067315,"user":{"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},"created_at":"2015-07-07T03:59:33Z","updated_at":"2015-07-07T03:59:33Z","body":"@brendangibat   A couple of quick things off the bat.  Code you please do a rebase as I have merged in several changes since your fork.  Also all runtime dependencies must be hard pinned.  Just as I pin my production chef cookbooks, we pin runtime dependencies.\r\n\r\nCould you also please update the CHANGELOG to include these new files and the README with the files and the file headers to include sample commands.\r\n\r\nI would be glad to take a look at these though and then look at possibly incorporating this functionality into the other checks.\r\n\r\nThanks for all this!"}}