lib/kishu/sushi.rb in kishu-1.0.0 vs lib/kishu/sushi.rb in kishu-1.0.1

- old
+ new

@@ -67,11 +67,13 @@ LOGGER.info "#{LOGS_TAG} Month of #{report.period.dig("begin-date")} sent to Hub in report #{report.uid} with stats for #{report.total} datasets" end desc "is ES running", "check es is working" def elasticsearch_results - es = Client.get({aggs_size: 10, after_key: ""}) - puts es + es = Client.new() + es = es.get({aggs_size: 10, after_key: ""}) + puts es.dig("hits","total") + puts "Aggregations:" + es.fetch("aggregations",[]).first.to_s end end end \ No newline at end of file