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

          perform_request(method, path, params, body, headers).body
        end
# Forces any buffered data to be processed by the job.
#
# @option arguments [String] :job_id The name of the job to flush
# @option arguments [Boolean] :calc_interim Calculates interim results for the most recent bucket or all buckets within the latency period
# @option arguments [String] :start When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results
# @option arguments [String] :end When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results
# @option arguments [String] :advance_time Advances time to the given value generating results and updating the model for the advanced interval
# @option arguments [String] :skip_time Skips time to the given value without generating results or updating the model for the skipped interval
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body Flush parameters
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html
#
Forces any buffered data to be processed by the job.
Forces any buffered data to be processed by the job .
def flush_job(arguments = {})
          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)}/_flush"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def flush_job ( arguments = { } ) 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)}/_flush" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Forces any buffered data to be processed by the job.
Forces any buffered data to be processed by the job .
arguments
:body Flush parameters
: body Flush parameters
see
None