elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb
def post_data(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]

          headers = arguments.delete(:headers) || {}

          body = arguments.delete(:body)

          arguments = arguments.clone

          _job_id = arguments.delete(:job_id)

          method = Elasticsearch::API::HTTP_POST
          path   = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_data"
          params = Utils.process_params(arguments)

          perform_request(method, path, params, body, headers).body
        end
# Sends data to an anomaly detection job for analysis.
#
# @option arguments [String] :job_id The name of the job receiving the data
# @option arguments [String] :reset_start Optional parameter to specify the start of the bucket resetting range
# @option arguments [String] :reset_end Optional parameter to specify the end of the bucket resetting range
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The data to process (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html
#
Sends data to an anomaly detection job for analysis.
Sends data to an anomaly detection job for analysis .
def post_data(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _job_id = arguments.delete(:job_id)
          method = Elasticsearch::API::HTTP_POST
          path   = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_data"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def post_data ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] raise ArgumentError , "Required argument 'job_id' missing" unless arguments [ :job_id ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _job_id = arguments . delete ( :job_id ) method = Elasticsearch :: API :: HTTP_POST path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_data" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Sends data to an anomaly detection job for analysis.
Sends data to an anomaly detection job for analysis .
arguments
:body The data to process (*Required*)
: body The data to process ( * Required * )
see
None