start-datafeed.asciidoc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --
  2. :api: start-datafeed
  3. :request: StartDatafeedRequest
  4. :response: StartDatafeedResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Start datafeed API
  9. Starts a {ml} datafeed in the cluster. It accepts a +{request}+ object and
  10. responds with a +{response}+ object.
  11. [id="{upid}-{api}-request"]
  12. ==== Start datafeed request
  13. A +{request}+ object is created referencing a non-null `datafeedId`.
  14. All other fields are optional for the request.
  15. ["source","java",subs="attributes,callouts,macros"]
  16. --------------------------------------------------
  17. include-tagged::{doc-tests-file}[{api}-request]
  18. --------------------------------------------------
  19. <1> Constructing a new request referencing an existing `datafeedId`.
  20. ==== Optional arguments
  21. The following arguments are optional.
  22. ["source","java",subs="attributes,callouts,macros"]
  23. --------------------------------------------------
  24. include-tagged::{doc-tests-file}[{api}-request-options]
  25. --------------------------------------------------
  26. <1> Set when the datafeed should end, the value is exclusive.
  27. May be an epoch seconds, epoch millis or an ISO 8601 string.
  28. "now" is a special value that indicates the current time.
  29. If you do not specify an end time, the datafeed runs continuously.
  30. <2> Set when the datafeed should start, the value is inclusive.
  31. May be an epoch seconds, epoch millis or an ISO 8601 string.
  32. If you do not specify a start time and the datafeed is associated with a new job,
  33. the analysis starts from the earliest time for which data is available.
  34. <3> Set the timeout for the request
  35. include::../execution.asciidoc[]