start-datafeed.asciidoc 1.5 KB

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