elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb
def stats(arguments = {})
          headers = arguments.delete(:headers) || {}

          body = nil

          arguments = arguments.clone

          _index = arguments.delete(:index)

          method = Elasticsearch::API::HTTP_GET
          path   = if _index
                     "#{Utils.__listify(_index)}/_searchable_snapshots/stats"
                   else
                     "_searchable_snapshots/stats"
                   end
          params = Utils.process_params(arguments)

          perform_request(method, path, params, body, headers).body
        end
# Retrieve shard-level statistics about searchable snapshots.
#
# @option arguments [List] :index A comma-separated list of index names
# @option arguments [String] :level Return stats aggregated at cluster, index or shard level (options: cluster, indices, shards)
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html
#
Retrieve shard-level statistics about searchable snapshots.
Retrieve shard - level statistics about searchable snapshots .
def stats(arguments = {})
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _index = arguments.delete(:index)
          method = Elasticsearch::API::HTTP_GET
          path   = if _index
                     "#{Utils.__listify(_index)}/_searchable_snapshots/stats"
                   else
                     "_searchable_snapshots/stats"
                   end
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def stats ( arguments = { } ) headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _index = arguments . delete ( :index ) method = Elasticsearch :: API :: HTTP_GET path = if _index "#{Utils.__listify(_index)}/_searchable_snapshots/stats" else "_searchable_snapshots/stats" end params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Retrieve shard-level statistics about searchable snapshots.
Retrieve shard - level statistics about searchable snapshots .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None