2018-11-21 04:10:37 -05:00
|
|
|
--
|
|
|
|
:api: revert-model-snapshot
|
|
|
|
:request: RevertModelSnapshotRequest
|
|
|
|
:response: RevertModelSnapshotResponse
|
|
|
|
--
|
2019-09-10 11:26:56 -04:00
|
|
|
[role="xpack"]
|
|
|
|
|
2018-11-21 04:10:37 -05:00
|
|
|
[id="{upid}-{api}"]
|
2020-10-02 17:01:01 -04:00
|
|
|
=== Revert model snapshots API
|
2018-11-21 04:10:37 -05:00
|
|
|
|
2020-10-02 17:01:01 -04:00
|
|
|
Reverts to a previous {ml} model snapshot.
|
2018-11-21 04:10:37 -05:00
|
|
|
It accepts a +{request}+ object and responds
|
|
|
|
with a +{response}+ object.
|
|
|
|
|
|
|
|
[id="{upid}-{api}-request"]
|
2020-10-02 17:01:01 -04:00
|
|
|
==== Revert model snapshots request
|
2018-11-21 04:10:37 -05:00
|
|
|
|
|
|
|
A +{request}+ requires the following arguments:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> Constructing a new request referencing existing `jobId` and `snapshotId` values.
|
|
|
|
|
2020-09-04 19:57:15 -04:00
|
|
|
==== Optional arguments
|
2018-11-21 04:10:37 -05:00
|
|
|
|
|
|
|
The following arguments are optional:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-delete-intervening-results]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> A flag indicating whether or not results in the period between the timestamp on the reverted snapshot and the latest results should be deleted
|
|
|
|
|
|
|
|
|
|
|
|
include::../execution.asciidoc[]
|
|
|
|
|
|
|
|
[id="{upid}-{api}-response"]
|
2020-09-04 19:57:15 -04:00
|
|
|
==== Revert job response
|
2018-11-21 04:10:37 -05:00
|
|
|
|
|
|
|
A +{response}+ contains the full representation of the reverted `ModelSnapshot`.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> The reverted `ModelSnapshot`
|