Sha256: 2f68119a7836dcf3f6401f131b8b242c38630dbd7d77f25594924c866bc6cf7e

Contents?: true

Size: 928 Bytes

Versions: 12

Compression:

Stored size: 928 Bytes

Contents

module Elasticsearch
  module XPack
    module API
      module MachineLearning
        module Actions

          # Finds the structure of a text file. The text file must contain data that is suitable to be
          #   ingested into Elasticsearch.
          #
          # @option arguments [Hash] :body The contents of the file to be analyzed (*Required*)
          #
          # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-file-structure.html
          #
          def find_file_structure(arguments={})
            raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
            method = Elasticsearch::API::HTTP_POST
            path   = "_xpack/ml/find_file_structure"
            body = Elasticsearch::API::Utils.__bulkify(arguments.delete(:body))

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
elasticsearch-xpack-6.8.1 lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb
elasticsearch-xpack-7.4.0 lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb
elasticsearch-xpack-7.3.0 lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb
elasticsearch-xpack-7.2.1 lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb
elasticsearch-xpack-7.2.0 lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb
elasticsearch-xpack-7.1.0 lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb
elasticsearch-xpack-6.8.0 lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb
elasticsearch-xpack-6.3.1 lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb
elasticsearch-xpack-7.0.0 lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb
elasticsearch-xpack-7.0.0.pre lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb
elasticsearch-xpack-6.3.0 lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb
elasticsearch-xpack-6.2.0 lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb