elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb
# Updates certain properties of a datafeed.
#
# @option arguments [String] :datafeed_id The ID of the datafeed to update
# @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false)
# @option arguments [Boolean] :allow_no_indices Ignore if the source indices expressions resolves to no concrete indices (default: true)
# @option arguments [Boolean] :ignore_throttled Ignore indices that are marked as throttled (default: true)
# @option arguments [String] :expand_wildcards Whether source index expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all)
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The datafeed update settings (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html
#
Updates certain properties of a datafeed.
Updates certain properties of a datafeed .
def update_datafeed(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'datafeed_id' missing" unless arguments[:datafeed_id]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _datafeed_id = arguments.delete(:datafeed_id)
          method = Elasticsearch::API::HTTP_POST
          path   = "_ml/datafeeds/#{Utils.__listify(_datafeed_id)}/_update"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def update_datafeed ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] raise ArgumentError , "Required argument 'datafeed_id' missing" unless arguments [ :datafeed_id ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _datafeed_id = arguments . delete ( :datafeed_id ) method = Elasticsearch :: API :: HTTP_POST path = "_ml/datafeeds/#{Utils.__listify(_datafeed_id)}/_update" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Updates certain properties of a datafeed.
Updates certain properties of a datafeed .
arguments
:body The datafeed update settings (*Required*)
: body The datafeed update settings ( * Required * )
see
None