get-datafeed.asciidoc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --
  2. :api: get-datafeed
  3. :request: GetDatafeedRequest
  4. :response: GetDatafeedResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Get Datafeed API
  8. The Get Datafeed API provides the ability to get {ml} datafeeds in the cluster.
  9. It accepts a +{request}+ object and responds
  10. with a +{response}+ object.
  11. [id="{upid}-{api}-request"]
  12. ==== Get Datafeed Request
  13. A +{request}+ object gets can have any number of `datafeedId` entries.
  14. However, they all must be non-null. An empty list is the same as requesting for all 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`, can contain wildcards
  20. <2> Whether to ignore if a wildcard expression matches no datafeeds.
  21. (This includes `_all` string or when no datafeeds have been specified)
  22. [id="{upid}-{api}-response"]
  23. ==== Get Datafeed Response
  24. ["source","java",subs="attributes,callouts,macros"]
  25. --------------------------------------------------
  26. include-tagged::{doc-tests-file}[{api}-response]
  27. --------------------------------------------------
  28. <1> The count of retrieved datafeeds
  29. <2> The retrieved datafeeds
  30. include::../execution.asciidoc[]