elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb
# Returns high-level overview of cluster statistics.
#
# @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 [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-stats.html
#
Returns high-level overview of cluster statistics.
Returns high - level overview of cluster statistics .
def stats(arguments = {})
          arguments = arguments.clone
          headers = arguments.delete(:headers) || {}
          body = nil
          _node_id = arguments.delete(:node_id)
          method = Elasticsearch::API::HTTP_GET
          path   = if _node_id
                     "_cluster/stats/nodes/#{Utils.__listify(_node_id)}"
                   else
                     "_cluster/stats"
                   end
          params = Utils.process_params(arguments)
          Elasticsearch::API::Response.new(
            perform_request(method, path, params, body, headers)
          )
        end
def stats ( arguments = { } ) arguments = arguments . clone headers = arguments . delete ( :headers ) || { } body = nil _node_id = arguments . delete ( :node_id ) method = Elasticsearch :: API :: HTTP_GET path = if _node_id "_cluster/stats/nodes/#{Utils.__listify(_node_id)}" else "_cluster/stats" end params = Utils . process_params ( arguments ) Elasticsearch :: API :: Response . new ( perform_request ( method , path , params , body , headers ) ) end
Returns high-level overview of cluster statistics.
Returns high - level overview of cluster statistics .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None