Sha256: 3ee015dac8f4e4a6d22b9e99a5f6c7e4861f8ee8c898de781cefa5b09f4e7669

Contents?: true

Size: 1.21 KB

Versions: 6

Compression:

Stored size: 1.21 KB

Contents

module Elasticsearch
  module API
    module Cat
      module Actions

        # Display information about the segments in the shards of an index
        #
        # @example Display information for all indices
        #
        #     puts client.cat.segments
        #
        # @option arguments [List] :index A comma-separated list of index names to limit the returned information
        # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, m, g)
        # @option arguments [List] :h Comma-separated list of column names to display
        # @option arguments [Boolean] :help Return help information
        # @option arguments [Boolean] :v Verbose mode. Display column headers
        #
        # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-segments.html
        #
        def segments(arguments={})
          valid_params = [
            :bytes,
            :h,
            :help,
            :v ]
          method = 'GET'
          path   = "_cat/segments"
          params = Utils.__validate_and_extract_params arguments, valid_params
          body   = nil

          perform_request(method, path, params, body).body
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
elasticsearch-api-1.0.18 lib/elasticsearch/api/actions/cat/segments.rb
elasticsearch-api-1.0.17 lib/elasticsearch/api/actions/cat/segments.rb
elasticsearch-api-1.0.16 lib/elasticsearch/api/actions/cat/segments.rb
elasticsearch-api-1.0.16.pre2 lib/elasticsearch/api/actions/cat/segments.rb
elasticsearch-api-1.0.16.pre lib/elasticsearch/api/actions/cat/segments.rb
elasticsearch-api-1.0.15 lib/elasticsearch/api/actions/cat/segments.rb