Sha256: 1e6349850fa5130a834ce56376e87d3c49f1a08e88ea2e79f722b09cc0e380cf
Contents?: true
Size: 1.05 KB
Versions: 7
Compression:
Stored size: 1.05 KB
Contents
module Elasticsearch module XPack module API module MachineLearning module Actions # Open a job to receive and analyze data # # @option arguments [String] :job_id The ID of the job to open (*Required*) # @option arguments [Boolean] :ignore_downtime Controls if gaps in data are treated as anomalous or as a maintenance window after a job re-start # @option arguments [Time] :timeout Controls the time to wait until a job has opened. Default to 30 minutes # # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html # def open_job(arguments={}) raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id] method = Elasticsearch::API::HTTP_POST path = "_xpack/ml/anomaly_detectors/#{arguments[:job_id]}/_open" params = {} body = nil perform_request(method, path, params, body).body end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems