lib/elasticsearch/api/actions/machine_learning/open_job.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/machine_learning/open_job.rb in elasticsearch-api-8.1.2
- old
+ new
@@ -28,14 +28,13 @@
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/ml-open-job.html
#
def open_job(arguments = {})
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
+ arguments = arguments.clone
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)}/_open"