Sha256: f39644a391cfffee71af499534cc1be96c29c943ee5d11a9db36c16e17035526

Contents?: true

Size: 995 Bytes

Versions: 5

Compression:

Stored size: 995 Bytes

Contents

module Elasticsearch
  module API
    module Cluster
      module Actions

        # Return the information about why a shard is or isn't allocated
        #
        # @option arguments [Hash] :body The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard'
        # @option arguments [Boolean] :include_yes_decisions Return 'YES' decisions in explanation (default: false)
        #
        # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html
        #
        def allocation_explain(arguments={})
          Utils.__report_unsupported_method(__method__)

          valid_params = [
            :include_yes_decisions ]
          method = 'GET'
          path   = "_cluster/allocation/explain"
          params = Utils.__validate_and_extract_params arguments, valid_params
          body   = arguments[:body]

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
elasticsearch-api-1.1.3 lib/elasticsearch/api/actions/cluster/allocation_explain.rb
elasticsearch-api-1.1.2 lib/elasticsearch/api/actions/cluster/allocation_explain.rb
elasticsearch-api-1.1.1 lib/elasticsearch/api/actions/cluster/allocation_explain.rb
elasticsearch-api-1.1.0 lib/elasticsearch/api/actions/cluster/allocation_explain.rb
elasticsearch-api-1.1.pre lib/elasticsearch/api/actions/cluster/allocation_explain.rb