Sha256: 19143a448da552bf678a814620c53aafdc6612bcf325a80e47edc27933aaf5ab
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
# Licensed to Elasticsearch B.V under one or more agreements. # Elasticsearch B.V licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information 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
2 entries across 2 versions & 1 rubygems