open-job.asciidoc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --
  2. :api: open-job
  3. :request: OpenJobRequest
  4. :response: OpenJobResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Open {anomaly-job} API
  8. Opens {anomaly-jobs} in the cluster. It accepts a +{request}+ object and
  9. responds with a +{response}+ object.
  10. [id="{upid}-{api}-request"]
  11. ==== Open {anomaly-job} request
  12. An +{request}+ object gets created with an existing non-null `jobId`.
  13. ["source","java",subs="attributes,callouts,macros"]
  14. --------------------------------------------------
  15. include-tagged::{doc-tests-file}[{api}-request]
  16. --------------------------------------------------
  17. <1> Constructing a new request referencing an existing `jobId`
  18. <2> Optionally setting the `timeout` value for how long the
  19. execution should wait for the job to be opened.
  20. [id="{upid}-{api}-response"]
  21. ==== Open {anomaly-job} response
  22. ["source","java",subs="attributes,callouts,macros"]
  23. --------------------------------------------------
  24. include-tagged::{doc-tests-file}[{api}-response]
  25. --------------------------------------------------
  26. <1> `isOpened()` from the +{response}+ indicates if the job was successfully
  27. opened or not.
  28. include::../execution.asciidoc[]