Sha256: 34563fa7d7add2055a94d50d3b62b6fb4e5c879c5b9572625df874dc5f0696bf
Contents?: true
Size: 1 KB
Versions: 7
Compression:
Stored size: 1 KB
Contents
module Elasticsearch module XPack module API module MachineLearning module Actions # Update certain properties of a datafeed # # @option arguments [String] :datafeed_id The ID of the datafeed to update (*Required*) # @option arguments [Hash] :body The datafeed update settings (*Required*) # # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html # def update_datafeed(arguments={}) raise ArgumentError, "Required argument 'datafeed_id' missing" unless arguments[:datafeed_id] raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] method = Elasticsearch::API::HTTP_POST path = "_xpack/ml/datafeeds/#{arguments[:datafeed_id]}/_update" params = {} body = arguments[:body] perform_request(method, path, params, body).body end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems