elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb
# Previews that will be analyzed given a data frame analytics config.
#
# @option arguments [String] :id The ID of the data frame analytics to preview
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The data frame analytics config to preview
#
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/preview-dfanalytics.html
#
Previews that will be analyzed given a data frame analytics config.
Previews that will be analyzed given a data frame analytics config .
def preview_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)}/_preview"
                   else
                     "_ml/data_frame/analytics/_preview"
                   end
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def preview_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)}/_preview" else "_ml/data_frame/analytics/_preview" end params = { } perform_request ( method , path , params , body , headers ) . body end
Previews that will be analyzed given a data frame analytics config.
Previews that will be analyzed given a data frame analytics config .
arguments
:body The data frame analytics config to preview
: body The data frame analytics config to preview
see
None