Method: Elasticsearch::API::Cluster::Actions#allocation_explain
- Defined in:
- lib/elasticsearch/api/actions/cluster/allocation_explain.rb
permalink #allocation_explain(arguments = {}) ⇒ Object
Provides explanations for shard allocations in the cluster.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/elasticsearch/api/actions/cluster/allocation_explain.rb', line 34 def allocation_explain(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) method = if body Elasticsearch::API::HTTP_POST else Elasticsearch::API::HTTP_GET end path = "_cluster/allocation/explain" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |