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

          body = arguments.delete(:body)

          arguments = arguments.clone

          _id = arguments.delete(:id)

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

          path   = if _id
                     "_ml/data_frame/analytics/#{Utils.__listify(_id)}/_explain"
                   else
                     "_ml/data_frame/analytics/_explain"
                   end
          params = {}

          perform_request(method, path, params, body, headers).body
        end
# Explains a data frame analytics config.
#
# @option arguments [String] :id The ID of the data frame analytics to explain
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The data frame analytics config to explain
#
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html
#
Explains a data frame analytics config.
Explains a data frame analytics config .
def explain_data_frame_analytics(arguments = {})
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _id = arguments.delete(:id)
          method = if body
                     Elasticsearch::API::HTTP_POST
                   else
                     Elasticsearch::API::HTTP_GET
                   end
          path   = if _id
                     "_ml/data_frame/analytics/#{Utils.__listify(_id)}/_explain"
                   else
                     "_ml/data_frame/analytics/_explain"
                   end
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def explain_data_frame_analytics ( arguments = { } ) headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _id = arguments . delete ( :id ) method = if body Elasticsearch :: API :: HTTP_POST else Elasticsearch :: API :: HTTP_GET end path = if _id "_ml/data_frame/analytics/#{Utils.__listify(_id)}/_explain" else "_ml/data_frame/analytics/_explain" end params = { } perform_request ( method , path , params , body , headers ) . body end
Explains a data frame analytics config.
Explains a data frame analytics config .
arguments
:body The data frame analytics config to explain
: body The data frame analytics config to explain
see
None