get_data_frame_stats.asciidoc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --
  2. :api: get-data-frame-transform-stats
  3. :request: GetDataFrameTransformStatsRequest
  4. :response: GetDataFrameTransformStatsResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Get {dataframe-transform} stats API
  8. Retrieves the operational statistics of one or more {dataframe-transforms}.
  9. The API accepts a +{request}+ object and returns a +{response}+.
  10. [id="{upid}-{api}-request"]
  11. ==== Get {dataframe-transform} stats request
  12. A +{request}+ requires a data frame transform id or the special wildcard `_all`
  13. to get the statistics for all {dataframe-transforms}.
  14. ["source","java",subs="attributes,callouts,macros"]
  15. --------------------------------------------------
  16. include-tagged::{doc-tests-file}[{api}-request]
  17. --------------------------------------------------
  18. <1> Constructing a new GET Stats request referencing an existing {dataframe-transform}
  19. ==== Optional arguments
  20. The following arguments are optional.
  21. ["source","java",subs="attributes,callouts,macros"]
  22. --------------------------------------------------
  23. include-tagged::{doc-tests-file}[{api}-request-options]
  24. --------------------------------------------------
  25. <1> The page parameters `from` and `size`. `from` specifies the number of
  26. {dataframe-transform} stats to skip.
  27. `size` specifies the maximum number of {dataframe-transform} stats to get.
  28. Defaults to `0` and `100` respectively.
  29. <2> Whether to ignore if a wildcard expression matches no transforms.
  30. include::../execution.asciidoc[]
  31. [id="{upid}-{api}-response"]
  32. ==== Response
  33. The returned +{response}+ contains the requested {dataframe-transform} statistics.
  34. ["source","java",subs="attributes,callouts,macros"]
  35. --------------------------------------------------
  36. include-tagged::{doc-tests-file}[{api}-response]
  37. --------------------------------------------------
  38. <1> The response contains a list of `DataFrameTransformStats` objects
  39. <2> The running state of the transform task e.g `started`
  40. <3> The running state of the transform indexer e.g `started`, `indexing`, etc.
  41. <4> The overall transform statistics recording the number of documents indexed etc.
  42. <5> The progress of the current run in the transform. Supplies the number of docs left until the next checkpoint
  43. and the total number of docs expected.
  44. <6> The assigned node information if the task is currently assigned to a node and running.