get_data_frame_stats.asciidoc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --
  2. :api: get-data-frame-transform-stats
  3. :request: GetDataFrameTransformStatsRequest
  4. :response: GetDataFrameTransformStatsResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Get {dataframe-transform} stats API
  9. Retrieves the operational statistics of one or more {dataframe-transforms}.
  10. The API accepts a +{request}+ object and returns a +{response}+.
  11. [id="{upid}-{api}-request"]
  12. ==== Get {dataframe-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-transforms}.
  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. ==== Optional arguments
  21. The following arguments are optional.
  22. ["source","java",subs="attributes,callouts,macros"]
  23. --------------------------------------------------
  24. include-tagged::{doc-tests-file}[{api}-request-options]
  25. --------------------------------------------------
  26. <1> The page parameters `from` and `size`. `from` specifies the number of
  27. {dataframe-transform} stats to skip.
  28. `size` specifies the maximum number of {dataframe-transform} stats to get.
  29. Defaults to `0` and `100` respectively.
  30. <2> Whether to ignore if a wildcard expression matches no transforms.
  31. include::../execution.asciidoc[]
  32. [id="{upid}-{api}-response"]
  33. ==== Response
  34. The returned +{response}+ contains the requested {dataframe-transform} statistics.
  35. ["source","java",subs="attributes,callouts,macros"]
  36. --------------------------------------------------
  37. include-tagged::{doc-tests-file}[{api}-response]
  38. --------------------------------------------------
  39. <1> The response contains a list of `DataFrameTransformStats` objects
  40. <2> The running state of the transform, for example `started`, `indexing`, etc.
  41. <3> The overall transform statistics recording the number of documents indexed etc.
  42. <4> 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. <5> The assigned node information if the task is currently assigned to a node and running.