get-datafeed-stats.asciidoc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --
  2. :api: get-datafeed-stats
  3. :request: GetDatafeedStatsRequest
  4. :response: GetDatafeedStatsResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Get datafeed stats API
  8. Retrieves any number of {ml} datafeeds' statistics in the cluster.
  9. It accepts a +{request}+ object and responds with a +{response}+ object.
  10. [id="{upid}-{api}-request"]
  11. ==== Get datafeed stats request
  12. A +{request}+ object can have any number of `datafeedId` entries. However, they
  13. all must be non-null. An empty list is the same as requesting statistics for all
  14. datafeeds.
  15. ["source","java",subs="attributes,callouts,macros"]
  16. --------------------------------------------------
  17. include-tagged::{doc-tests-file}[{api}-request]
  18. --------------------------------------------------
  19. <1> Constructing a new request referencing existing `datafeedIds`. It can
  20. contain wildcards.
  21. <2> Whether to ignore if a wildcard expression matches no datafeeds.
  22. (This includes `_all` string or when no datafeeds have been specified).
  23. include::../execution.asciidoc[]
  24. [id="{upid}-{api}-response"]
  25. ==== Get datafeed stats response
  26. The returned +{response}+ contains the requested datafeed statistics:
  27. ["source","java",subs="attributes,callouts,macros"]
  28. --------------------------------------------------
  29. include-tagged::{doc-tests-file}[{api}-response]
  30. --------------------------------------------------
  31. <1> `count()` indicates the number of datafeeds statistics found.
  32. <2> `datafeedStats()` is the collection of {ml} `DatafeedStats` objects found.