Sha256: ae0dacfdcb5bdcd091a2c87b774a289018a5a2e78cf2e7d5ede5fac645da8aac
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
# Licensed to Elasticsearch B.V under one or more agreements. # Elasticsearch B.V licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information module Elasticsearch module XPack module API module MachineLearning module Actions # Retrieve configuration information for jobs # # @option arguments [String] :job_id The ID of the jobs to fetch # @option arguments [Boolean] :allow_no_jobs Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) # # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html # def get_jobs(arguments={}) valid_params = [ :allow_no_jobs ] method = Elasticsearch::API::HTTP_GET path = "_xpack/ml/anomaly_detectors/#{arguments[:job_id]}" params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params body = nil perform_request(method, path, params, body).body end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems