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

          body = arguments.delete(:body)

          arguments = arguments.clone

          method = if body
                     Elasticsearch::API::HTTP_POST
                   else
                     Elasticsearch::API::HTTP_GET
                   end

          path   = "_cluster/allocation/explain"
          params = Utils.process_params(arguments)

          perform_request(method, path, params, body, headers).body
        end
# Provides explanations for shard allocations in the cluster.
#
# @option arguments [Boolean] :include_yes_decisions Return 'YES' decisions in explanation (default: false)
# @option arguments [Boolean] :include_disk_info Return information about disk usage and shard sizes (default: false)
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The index, shard, and primary flag to explain. Empty means 'explain a randomly-chosen unassigned shard'
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html
#
Provides explanations for shard allocations in the cluster.
Provides explanations for shard allocations in the cluster .
def allocation_explain(arguments = {})
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          method = if body
                     Elasticsearch::API::HTTP_POST
                   else
                     Elasticsearch::API::HTTP_GET
                   end
          path   = "_cluster/allocation/explain"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def allocation_explain ( arguments = { } ) headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone method = if body Elasticsearch :: API :: HTTP_POST else Elasticsearch :: API :: HTTP_GET end path = "_cluster/allocation/explain" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Provides explanations for shard allocations in the cluster.
Provides explanations for shard allocations in the cluster .
arguments
:body The index, shard, and primary flag to explain. Empty means 'explain a randomly-chosen unassigned shard'
: body The index shard and primary flag to explain . Empty means ' explain a randomly - chosen unassigned shard '
see
None