get_data_frame_stats.asciidoc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --
  2. :api: get-data-frame-transform-stats
  3. :request: GetDataFrameTransformStatsRequest
  4. :response: GetDataFrameTransformStatsResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Get Data Frame Transform Stats API
  8. The Get Data Frame Transform Stats API is used read the operational statistics
  9. of one or more {dataframe-transform}s.
  10. The API accepts a +{request}+ object and returns a +{response}+.
  11. [id="{upid}-{api}-request"]
  12. ==== Get Data Frame Transform Stats Request
  13. A +{request}+ requires a data frame transform id or the special wildcard `_all`
  14. to get the statistics for all {dataframe-transform}s
  15. ["source","java",subs="attributes,callouts,macros"]
  16. --------------------------------------------------
  17. include-tagged::{doc-tests-file}[{api}-request]
  18. --------------------------------------------------
  19. <1> Constructing a new GET Stats request referencing an existing {dataframe-transform}
  20. include::../execution.asciidoc[]
  21. [id="{upid}-{api}-response"]
  22. ==== Response
  23. The returned +{response}+ contains the requested {dataframe-transform} statistics.
  24. ["source","java",subs="attributes,callouts,macros"]
  25. --------------------------------------------------
  26. include-tagged::{doc-tests-file}[{api}-response]
  27. --------------------------------------------------
  28. <1> The response contains a list of `DataFrameTransformStateAndStats` objects
  29. <2> The running state of the transform task e.g `started`
  30. <3> The running state of the transform indexer e.g `started`, `indexing`, etc.
  31. <4> The overall transform statistics recording the number of documents indexed etc.
  32. <5> The progress of the current run in the transform. Supplies the number of docs left until the next checkpoint
  33. and the total number of docs expected.