lib/elasticsearch/api/actions/cat/ml_jobs.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/cat/ml_jobs.rb in elasticsearch-api-8.1.0
- old
+ new
@@ -21,26 +21,26 @@
module Actions
# Gets configuration and usage information about anomaly detection jobs.
#
# @option arguments [String] :job_id The ID of the jobs stats to fetch
# @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)
- # @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) *Deprecated*
# @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb)
# @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
# @option arguments [List] :h Comma-separated list of column names to display
# @option arguments [Boolean] :help Return help information
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
# @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos)
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-anomaly-detectors.html
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/8.1/cat-anomaly-detectors.html
#
def ml_jobs(arguments = {})
- arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = nil
+
+ arguments = arguments.clone
_job_id = arguments.delete(:job_id)
method = Elasticsearch::API::HTTP_GET
path = if _job_id