2018-10-05 11:45:46 -04:00
|
|
|
--
|
|
|
|
:api: get-job-stats
|
|
|
|
:request: GetJobStatsRequest
|
|
|
|
:response: GetJobStatsResponse
|
|
|
|
--
|
|
|
|
[id="{upid}-{api}"]
|
2018-09-01 14:32:18 -04:00
|
|
|
=== Get Job Stats API
|
|
|
|
|
|
|
|
The Get Job Stats API provides the ability to get any number of
|
|
|
|
{ml} job's statistics in the cluster.
|
2018-10-05 11:45:46 -04:00
|
|
|
It accepts a +{request}+ object and responds
|
|
|
|
with a +{response}+ object.
|
2018-09-01 14:32:18 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-request"]
|
2018-09-01 14:32:18 -04:00
|
|
|
==== Get Job Stats Request
|
|
|
|
|
|
|
|
A `GetJobsStatsRequest` object can have any number of `jobId`
|
|
|
|
entries. However, they all must be non-null. An empty list is the same as
|
|
|
|
requesting statistics for all jobs.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-09-01 14:32:18 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Constructing a new request referencing existing `jobIds`, can contain wildcards
|
|
|
|
<2> Whether to ignore if a wildcard expression matches no jobs.
|
|
|
|
(This includes `_all` string or when no jobs have been specified)
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
include::../execution.asciidoc[]
|
2018-09-01 14:32:18 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-response"]
|
2018-09-01 14:32:18 -04:00
|
|
|
==== Get Job Stats Response
|
2018-10-05 11:45:46 -04:00
|
|
|
The returned +{response}+ contains the requested job statistics:
|
2018-09-01 14:32:18 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
2018-09-01 14:32:18 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> `getCount()` indicates the number of jobs statistics found
|
|
|
|
<2> `getJobStats()` is the collection of {ml} `JobStats` objects found
|