2018-11-20 08:43:34 -05:00
|
|
|
--
|
|
|
|
:api: delete-calendar-job
|
|
|
|
:request: DeleteCalendarJobRequest
|
|
|
|
:response: PutCalendarResponse
|
|
|
|
--
|
2019-09-10 11:26:56 -04:00
|
|
|
[role="xpack"]
|
2018-11-20 08:43:34 -05:00
|
|
|
[id="{upid}-{api}"]
|
2019-07-25 14:20:42 -04:00
|
|
|
=== Delete {anomaly-jobs} from calendar API
|
2020-10-02 17:01:01 -04:00
|
|
|
|
2019-07-25 14:20:42 -04:00
|
|
|
Removes {anomaly-jobs} from an existing {ml} calendar.
|
2018-11-20 08:43:34 -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
|
|
|
==== Delete {anomaly-jobs} from calendar request
|
2018-11-20 08:43:34 -05:00
|
|
|
|
|
|
|
A +{request}+ is constructed referencing a non-null
|
|
|
|
calendar ID, and JobIDs which to remove from the calendar
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> The ID of the calendar from which to remove the jobs
|
|
|
|
<2> The JobIds to remove from the calendar
|
|
|
|
|
|
|
|
[id="{upid}-{api}-response"]
|
2019-07-25 14:20:42 -04:00
|
|
|
==== Delete {anomaly-jobs} from calendar response
|
2018-11-20 08:43:34 -05:00
|
|
|
|
|
|
|
The returned +{response}+ contains the updated Calendar:
|
|
|
|
|
|
|
|
["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 with the jobs removed
|
2018-11-20 08:43:34 -05:00
|
|
|
|
|
|
|
include::../execution.asciidoc[]
|