elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb
# Instantiates an anomaly detection job.
#
# @option arguments [String] :job_id The ID of the job to create
# @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false). Only set if datafeed_config is provided.
# @option arguments [Boolean] :allow_no_indices Ignore if the source indices expressions resolves to no concrete indices (default: true). Only set if datafeed_config is provided.
# @option arguments [Boolean] :ignore_throttled Ignore indices that are marked as throttled (default: true). Only set if datafeed_config is provided.
# @option arguments [String] :expand_wildcards Whether source index expressions should get expanded to open or closed indices (default: open). Only set if datafeed_config is provided. (options: open, closed, hidden, none, all)
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The job (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html
#
Instantiates an anomaly detection job.
Instantiates an anomaly detection job .
def put_job(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_PUT
          path   = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def put_job ( 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_PUT path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Instantiates an anomaly detection job.
Instantiates an anomaly detection job .
arguments
:body The job (*Required*)
: body The job ( * Required * )
see
None