start-data-frame-analytics.asciidoc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --
  2. :api: start-data-frame-analytics
  3. :request: StartDataFrameAnalyticsRequest
  4. :response: AcknowledgedResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Start {dfanalytics-jobs} API
  9. Starts an existing {dfanalytics-job}.
  10. It accepts a +{request}+ object and responds with a +{response}+ object.
  11. [id="{upid}-{api}-request"]
  12. ==== Start {dfanalytics-jobs} request
  13. A +{request}+ object requires a {dfanalytics-job} ID.
  14. ["source","java",subs="attributes,callouts,macros"]
  15. ---------------------------------------------------
  16. include-tagged::{doc-tests-file}[{api}-request]
  17. ---------------------------------------------------
  18. <1> Constructing a new start request referencing an existing {dfanalytics-job}
  19. include::../execution.asciidoc[]
  20. [id="{upid}-{api}-response"]
  21. ==== Start {dfanalytics-jobs} response
  22. The returned +{response}+ object acknowledges the {dfanalytics-job} has started.
  23. ["source","java",subs="attributes,callouts,macros"]
  24. --------------------------------------------------
  25. include-tagged::{doc-tests-file}[{api}-response]
  26. --------------------------------------------------
  27. <1> `getNode()` returns the node that the job was assigned to. If the
  28. job is allowed to open lazily and has not yet been assigned to a node
  29. then an empty string is returned. If `getNode()` returns `null` then
  30. the server is an old version that does not return node information.