get-datafeed.asciidoc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --
  2. :api: get-datafeed
  3. :request: GetDatafeedRequest
  4. :response: GetDatafeedResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Get datafeed API
  9. Retrieves configuration information about {ml} datafeeds in the cluster.
  10. It accepts a +{request}+ object and responds 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. However,
  14. they all must be non-null. An empty list is the same as requesting for all
  15. datafeeds.
  16. ["source","java",subs="attributes,callouts,macros"]
  17. --------------------------------------------------
  18. include-tagged::{doc-tests-file}[{api}-request]
  19. --------------------------------------------------
  20. <1> Constructing a new request referencing existing `datafeedIds`. It can
  21. 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. <3> Optional boolean value for requesting the datafeed in a format that can
  25. then be put into another cluster. Certain fields that can only be set when
  26. the datafeed is created are removed.
  27. [id="{upid}-{api}-response"]
  28. ==== Get datafeed response
  29. ["source","java",subs="attributes,callouts,macros"]
  30. --------------------------------------------------
  31. include-tagged::{doc-tests-file}[{api}-response]
  32. --------------------------------------------------
  33. <1> The count of retrieved datafeeds.
  34. <2> The retrieved datafeeds.
  35. include::../execution.asciidoc[]