start-data-frame-analytics.asciidoc 1.3 KB

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