2018-11-20 07:18:29 -05:00
|
|
|
--
|
|
|
|
:api: update-model-snapshot
|
|
|
|
:request: UpdateModelSnapshotRequest
|
|
|
|
:response: UpdateModelSnapshotResponse
|
|
|
|
--
|
2019-09-10 11:26:56 -04:00
|
|
|
[role="xpack"]
|
2018-11-20 07:18:29 -05:00
|
|
|
[id="{upid}-{api}"]
|
2020-10-02 17:01:01 -04:00
|
|
|
=== Update model snapshots API
|
2018-11-20 07:18:29 -05:00
|
|
|
|
2020-10-02 17:01:01 -04:00
|
|
|
Updates a {ml} model snapshot.
|
2019-08-06 14:05:01 -04:00
|
|
|
It accepts a +{request}+ object and responds with a +{response}+ object.
|
2018-11-20 07:18:29 -05:00
|
|
|
|
|
|
|
[id="{upid}-{api}-request"]
|
2020-10-02 17:01:01 -04:00
|
|
|
==== Update model snapshots request
|
2018-11-20 07:18:29 -05:00
|
|
|
|
|
|
|
A +{request}+ requires the following arguments:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
|
|
--------------------------------------------------
|
2019-08-06 14:05:01 -04:00
|
|
|
<1> Constructing a new request referencing existing `jobId` and `snapshotId`
|
|
|
|
values.
|
2018-11-20 07:18:29 -05:00
|
|
|
|
2019-08-06 14:05:01 -04:00
|
|
|
==== Optional arguments
|
2018-11-20 07:18:29 -05:00
|
|
|
|
|
|
|
The following arguments are optional:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-description]
|
|
|
|
--------------------------------------------------
|
2019-08-06 14:05:01 -04:00
|
|
|
<1> The updated description of the {ml} model snapshot.
|
2018-11-20 07:18:29 -05:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-retain]
|
|
|
|
--------------------------------------------------
|
2019-08-06 14:05:01 -04:00
|
|
|
<1> The updated `retain` property of the {ml} model snapshot.
|
2018-11-20 07:18:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
include::../execution.asciidoc[]
|
|
|
|
|
|
|
|
[id="{upid}-{api}-response"]
|
2020-10-02 17:01:01 -04:00
|
|
|
==== Update model snapshots response
|
2018-11-20 07:18:29 -05:00
|
|
|
|
|
|
|
A +{response}+ contains an acknowledgement of the update request and the full representation of the updated `ModelSnapshot` object
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
|
|
|
--------------------------------------------------
|
2019-08-06 14:05:01 -04:00
|
|
|
<1> An acknowledgement of the request.
|
|
|
|
<2> The updated `ModelSnapshot`.
|