[ML] Improve response format of data frame stats endpoint (#44350)

This change adjusts the data frame transforms stats
endpoint to return a structure that is easier to
understand.

This is a breaking change for clients of the data frame
transforms stats endpoint, but the feature is in beta so
stability is not guaranteed.

Closes #43767
This commit is contained in:
David Roberts 2019-07-23 10:48:23 +01:00 committed by GitHub
parent 5cdbefda14
commit a40ccd91b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 1399 additions and 1128 deletions

View file

@ -47,10 +47,10 @@ The returned +{response}+ contains the requested {dataframe-transform} statistic
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-response]
--------------------------------------------------
<1> The response contains a list of `DataFrameTransformStateAndStats` objects
<1> The response contains a list of `DataFrameTransformStats` objects
<2> The running state of the transform task e.g `started`
<3> The running state of the transform indexer e.g `started`, `indexing`, etc.
<4> The overall transform statistics recording the number of documents indexed etc.
<5> The progress of the current run in the transform. Supplies the number of docs left until the next checkpoint
and the total number of docs expected.
<6> The assigned node information if the task is currently assigned to a node and running.
<6> The assigned node information if the task is currently assigned to a node and running.