Module: ProxES::Helpers::ES
- Defined in:
- lib/proxes/helpers/es.rb
Instance Method Summary collapse
Instance Method Details
#client ⇒ Object
6 7 8 |
# File 'lib/proxes/helpers/es.rb', line 6 def client @client ||= Elasticsearch::Client.new url: ENV['ELASTICSEARCH_URL'] end |
#cluster_health(level = 'cluster') ⇒ Object
10 11 12 |
# File 'lib/proxes/helpers/es.rb', line 10 def cluster_health(level = 'cluster') client.cluster.health level: level end |