stop-datafeed.asciidoc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --
  2. :api: stop-datafeed
  3. :request: StopDatafeedRequest
  4. :response: StopDatafeedResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Stop datafeed API
  9. The stop datafeed API provides the ability to stop a {ml} datafeed in the cluster.
  10. It accepts a +{request}+ object and responds
  11. with a +{response}+ object.
  12. [id="{upid}-{api}-request"]
  13. ==== Stop datafeed request
  14. A +{request}+ object is created referencing any number of non-null `datafeedId` entries.
  15. Wildcards and `_all` are also accepted.
  16. All other fields are optional for the request.
  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 `datafeedId` entries.
  22. ==== Optional arguments
  23. The following arguments are optional.
  24. ["source","java",subs="attributes,callouts,macros"]
  25. --------------------------------------------------
  26. include-tagged::{doc-tests-file}[{api}-request-options]
  27. --------------------------------------------------
  28. <1> Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string)
  29. <2> If true, the datafeed is stopped forcefully.
  30. <3> Controls the amount of time to wait until a datafeed stops. The default value is 20 seconds.
  31. include::../execution.asciidoc[]