2018-10-05 11:45:46 -04:00
|
|
|
--
|
|
|
|
:api: get-job
|
|
|
|
:request: GetJobRequest
|
|
|
|
:response: GetJobResponse
|
|
|
|
--
|
|
|
|
[id="{upid}-{api}"]
|
2019-07-30 13:52:23 -04:00
|
|
|
=== Get {anomaly-jobs} API
|
2018-08-21 22:02:28 -04:00
|
|
|
|
2019-07-30 13:52:23 -04:00
|
|
|
Retrieves configuration information for {anomaly-jobs} in the cluster.
|
|
|
|
It accepts a +{request}+ object and responds with a +{response}+ object.
|
2018-08-21 22:02:28 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-request"]
|
2019-07-30 13:52:23 -04:00
|
|
|
==== Get {anomaly-jobs} request
|
2018-08-21 22:02:28 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
A +{request}+ object gets can have any number of `jobId` or `groupName`
|
2018-08-21 22:02:28 -04:00
|
|
|
entries. However, they all must be non-null. An empty list is the same as
|
2019-07-30 13:52:23 -04:00
|
|
|
requesting for all {anomaly-jobs}.
|
2018-08-21 22:02:28 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-08-21 22:02:28 -04:00
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> Constructing a new request referencing existing `jobIds`. It can contain
|
|
|
|
wildcards.
|
|
|
|
<2> Whether to ignore if a wildcard expression matches no {anomaly-jobs}.
|
|
|
|
(This includes `_all` string or when no jobs have been specified).
|
2018-08-21 22:02:28 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-response"]
|
2019-07-30 13:52:23 -04:00
|
|
|
==== Get {anomaly-jobs} response
|
2018-08-21 22:02:28 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
2018-08-21 22:02:28 -04:00
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> `getCount()` from the +{response}+ indicates the number of jobs found.
|
|
|
|
<2> `getJobs()` is the collection of {ml} `Job` objects found.
|
2018-08-21 22:02:28 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
include::../execution.asciidoc[]
|