Method: OpenSearch::API::Cluster::Actions#health
- Defined in:
- lib/opensearch/api/actions/cluster/health.rb
#health(arguments = {}) ⇒ Object
Returns basic information about the health of the cluster.
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/opensearch/api/actions/cluster/health.rb', line 48 def health(arguments = {}) headers = arguments.delete(:headers) || {} arguments = arguments.clone _index = arguments.delete(:index) method = OpenSearch::API::HTTP_GET path = if _index "_cluster/health/#{Utils.__listify(_index)}" else "_cluster/health" end params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) body = nil perform_request(method, path, params, body, headers).body end |