elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb
def start_datafeed(arguments = {})
          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)}/_start"
          params = Utils.process_params(arguments)

          perform_request(method, path, params, body, headers).body
        end
# Starts one or more datafeeds.
#
# @option arguments [String] :datafeed_id The ID of the datafeed to start
# @option arguments [String] :start The start time from where the datafeed should begin
# @option arguments [String] :end The end time when the datafeed should stop. When not set, the datafeed continues in real time
# @option arguments [Time] :timeout Controls the time to wait until a datafeed has started. Default to 20 seconds
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The start datafeed parameters
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html
#
Starts one or more datafeeds.
Starts one or more datafeeds .
def start_datafeed(arguments = {})
          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)}/_start"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def start_datafeed ( arguments = { } ) 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)}/_start" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Starts one or more datafeeds.
Starts one or more datafeeds .
arguments
:body The start datafeed parameters
: body The start datafeed parameters
see
None