put-calendar-job.asciidoc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --
  2. :api: put-calendar-job
  3. :request: PutCalendarJobRequest
  4. :response: PutCalendarResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Put {anomaly-jobs} in calendar API
  8. Adds {anomaly-jobs} jobs to an existing {ml} calendar.
  9. The API accepts a +{request}+ and responds
  10. with a +{response}+ object.
  11. [id="{upid}-{api}-request"]
  12. ==== Put {anomaly-jobs} in calendar request
  13. A +{request}+ is constructed referencing a non-null
  14. calendar ID, and JobIDs to which to add to the calendar
  15. ["source","java",subs="attributes,callouts,macros"]
  16. --------------------------------------------------
  17. include-tagged::{doc-tests-file}[{api}-request]
  18. --------------------------------------------------
  19. <1> The ID of the calendar to which to add the jobs
  20. <2> The JobIds to add to the calendar
  21. [id="{upid}-{api}-response"]
  22. ==== Put {anomaly-jobs} in calendar response
  23. The returned +{response}+ contains the updated calendar:
  24. ["source","java",subs="attributes,callouts,macros"]
  25. --------------------------------------------------
  26. include-tagged::{doc-tests-file}[{api}-response]
  27. --------------------------------------------------
  28. <1> The updated calendar
  29. include::../execution.asciidoc[]