elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb
# Returns information about nodes in the cluster.
#
# @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
# @option arguments [List] :metric A comma-separated list of metrics you wish returned. Leave empty to return all. (options: settings, os, process, jvm, thread_pool, transport, http, plugins, ingest)
# @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html
#
Returns information about nodes in the cluster.
Returns information about nodes in the cluster .
def info(arguments = {})
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _node_id = arguments.delete(:node_id)
          _metric = arguments.delete(:metric)
          method = Elasticsearch::API::HTTP_GET
          path   = if _node_id && _metric
                     "_nodes/#{Utils.__listify(_node_id)}/#{Utils.__listify(_metric)}"
                   elsif _node_id
                     "_nodes/#{Utils.__listify(_node_id)}"
                   elsif _metric
                     "_nodes/#{Utils.__listify(_metric)}"
                   else
                     "_nodes"
                   end
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def info ( arguments = { } ) headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _node_id = arguments . delete ( :node_id ) _metric = arguments . delete ( :metric ) method = Elasticsearch :: API :: HTTP_GET path = if _node_id && _metric "_nodes/#{Utils.__listify(_node_id)}/#{Utils.__listify(_metric)}" elsif _node_id "_nodes/#{Utils.__listify(_node_id)}" elsif _metric "_nodes/#{Utils.__listify(_metric)}" else "_nodes" end params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Returns information about nodes in the cluster.
Returns information about nodes in the cluster .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None