WARNING: Deprecated in 7.15.0.
The Java REST Client is deprecated in favor of the Java API Client.
Upgrade job snapshot API
editUpgrade job snapshot API
editUpgrades a previously stored machine learning model snapshot to the
current major version.
It accepts an UpgradeJobModelSnapshotRequest
object and responds
with an UpgradeJobModelSnapshotResponse
object.
Upgrade job snapshots request
editA UpgradeJobModelSnapshotRequest
requires the following arguments:
UpgradeJobModelSnapshotRequest request = new UpgradeJobModelSnapshotRequest( jobId, snapshotId, TimeValue.timeValueMinutes(30), true);
The job that owns the snapshot |
|
The snapshot id to upgrade |
|
The time out of the request. When |
|
When true, this causes the request to not return until the upgrade is complete. Otherwise, the response returns as soon as the task is assigned to a node. The default is false. |
Upgrade job snapshot response
editA UpgradeJobModelSnapshotResponse
contains information on if the request was completed and its assigned node.