Method: OpenSearch::API::Cat::Actions#nodes
- Defined in:
- lib/opensearch/api/actions/cat/nodes.rb
#nodes(arguments = {}) ⇒ Object
Returns basic statistics about performance of cluster nodes.
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/opensearch/api/actions/cat/nodes.rb', line 48 def nodes(arguments = {}) headers = arguments.delete(:headers) || {} arguments = arguments.clone method = OpenSearch::API::HTTP_GET path = '_cat/nodes' params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) params[:h] = Utils.__listify(params[:h], escape: false) if params[:h] body = nil perform_request(method, path, params, body, headers).body end |