2018-11-19 12:41:49 -05:00
|
|
|
--
|
|
|
|
:api: put-calendar-job
|
|
|
|
:request: PutCalendarJobRequest
|
|
|
|
:response: PutCalendarResponse
|
|
|
|
--
|
2019-09-10 11:26:56 -04:00
|
|
|
[role="xpack"]
|
2018-11-19 12:41:49 -05:00
|
|
|
[id="{upid}-{api}"]
|
2019-07-25 14:20:42 -04:00
|
|
|
=== Put {anomaly-jobs} in calendar API
|
|
|
|
Adds {anomaly-jobs} jobs to an existing {ml} calendar.
|
2018-11-19 12:41:49 -05:00
|
|
|
The API accepts a +{request}+ and responds
|
|
|
|
with a +{response}+ object.
|
|
|
|
|
|
|
|
[id="{upid}-{api}-request"]
|
2019-07-25 14:20:42 -04:00
|
|
|
==== Put {anomaly-jobs} in calendar request
|
2018-11-19 12:41:49 -05:00
|
|
|
|
|
|
|
A +{request}+ is constructed referencing a non-null
|
|
|
|
calendar ID, and JobIDs to which to add to the calendar
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> The ID of the calendar to which to add the jobs
|
|
|
|
<2> The JobIds to add to the calendar
|
|
|
|
|
|
|
|
[id="{upid}-{api}-response"]
|
2019-07-25 14:20:42 -04:00
|
|
|
==== Put {anomaly-jobs} in calendar response
|
2018-11-19 12:41:49 -05:00
|
|
|
|
2019-07-25 14:20:42 -04:00
|
|
|
The returned +{response}+ contains the updated calendar:
|
2018-11-19 12:41:49 -05:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
|
|
|
--------------------------------------------------
|
2019-07-25 14:20:42 -04:00
|
|
|
<1> The updated calendar
|
2018-11-19 12:41:49 -05:00
|
|
|
|
|
|
|
include::../execution.asciidoc[]
|