get-datafeed-stats.asciidoc 1.5 KB

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