2019-03-26 07:17:13 -04:00
|
|
|
--
|
|
|
|
:api: get-data-frame-transform-stats
|
|
|
|
:request: GetDataFrameTransformStatsRequest
|
|
|
|
:response: GetDataFrameTransformStatsResponse
|
|
|
|
--
|
2019-09-11 14:21:45 -04:00
|
|
|
[role="xpack"]
|
2019-03-26 07:17:13 -04:00
|
|
|
[id="{upid}-{api}"]
|
2019-09-16 11:28:19 -04:00
|
|
|
=== Get {transform} stats API
|
2019-03-26 07:17:13 -04:00
|
|
|
|
2019-09-16 11:28:19 -04:00
|
|
|
Retrieves the operational statistics of one or more {transforms}.
|
2019-03-26 07:17:13 -04:00
|
|
|
The API accepts a +{request}+ object and returns a +{response}+.
|
|
|
|
|
|
|
|
[id="{upid}-{api}-request"]
|
2019-09-16 11:28:19 -04:00
|
|
|
==== Get {transform} stats request
|
2019-03-26 07:17:13 -04:00
|
|
|
|
2019-09-16 11:28:19 -04:00
|
|
|
A +{request}+ requires a {transform} id or the special wildcard `_all`
|
|
|
|
to get the statistics for all {transforms}.
|
2019-03-26 07:17:13 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
|
|
--------------------------------------------------
|
2019-09-16 11:28:19 -04:00
|
|
|
<1> Constructing a new GET Stats request referencing an existing {transform}
|
2019-03-26 07:17:13 -04:00
|
|
|
|
2019-07-25 13:08:38 -04:00
|
|
|
==== Optional arguments
|
2019-06-26 11:09:56 -04:00
|
|
|
|
|
|
|
The following arguments are optional.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request-options]
|
|
|
|
--------------------------------------------------
|
2019-07-25 13:08:38 -04:00
|
|
|
<1> The page parameters `from` and `size`. `from` specifies the number of
|
2019-09-16 11:28:19 -04:00
|
|
|
{transform} stats to skip.
|
|
|
|
`size` specifies the maximum number of {transform} stats to get.
|
2019-06-26 11:09:56 -04:00
|
|
|
Defaults to `0` and `100` respectively.
|
2019-09-16 11:28:19 -04:00
|
|
|
<2> Whether to ignore if a wildcard expression matches no {transforms}.
|
2019-06-26 11:09:56 -04:00
|
|
|
|
2019-03-26 07:17:13 -04:00
|
|
|
|
|
|
|
include::../execution.asciidoc[]
|
|
|
|
|
|
|
|
[id="{upid}-{api}-response"]
|
|
|
|
==== Response
|
|
|
|
|
2019-09-16 11:28:19 -04:00
|
|
|
The returned +{response}+ contains the requested {transform} statistics.
|
2019-03-26 07:17:13 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
|
|
|
--------------------------------------------------
|
2019-07-23 13:00:50 -04:00
|
|
|
<1> The response contains a list of `DataFrameTransformStats` objects
|
2019-09-16 11:28:19 -04:00
|
|
|
<2> The running state of the {transform}, for example `started`, `indexing`, etc.
|
|
|
|
<3> The overall {transform} statistics recording the number of documents indexed etc.
|
|
|
|
<4> The progress of the current run in the {transform}. Supplies the number of docs left until the next checkpoint
|
2019-07-02 20:35:37 -04:00
|
|
|
and the total number of docs expected.
|
2019-08-08 11:24:26 -04:00
|
|
|
<5> The assigned node information if the task is currently assigned to a node and running.
|