2018-11-14 08:03:04 -05:00
|
|
|
--
|
|
|
|
:api: get-model-snapshots
|
|
|
|
:request: GetModelSnapshotsRequest
|
|
|
|
:response: GetModelSnapshotsResponse
|
|
|
|
--
|
|
|
|
[id="{upid}-{api}"]
|
2019-07-30 13:52:23 -04:00
|
|
|
=== Get model snapshots API
|
2018-11-14 08:03:04 -05:00
|
|
|
|
2019-07-30 13:52:23 -04:00
|
|
|
Retrieves one or more model snapshot results.
|
|
|
|
It accepts a +{request}+ object and responds with a +{response}+ object.
|
2018-11-14 08:03:04 -05:00
|
|
|
|
|
|
|
[id="{upid}-{api}-request"]
|
2019-07-30 13:52:23 -04:00
|
|
|
==== Get model snapshots request
|
2018-11-14 08:03:04 -05:00
|
|
|
|
|
|
|
A +{request}+ object gets created with an existing non-null `jobId`.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> Constructing a new request referencing an existing `jobId`.
|
2018-11-14 08:03:04 -05:00
|
|
|
|
2019-07-30 13:52:23 -04:00
|
|
|
==== Optional arguments
|
2018-11-14 08:03:04 -05:00
|
|
|
The following arguments are optional:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-snapshot-id]
|
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> The ID of the snapshot to get. Otherwise, it will return all snapshots.
|
2018-11-14 08:03:04 -05:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-desc]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> If `true`, the snapshots are sorted in descending order. Defaults to `false`.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-end]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> Snapshots with timestamps earlier than this time will be returned.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-sort]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> The field to sort snapshots on. Defaults to `timestamp`.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-start]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> Snapshots with timestamps on or after this time will be returned.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-page]
|
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> The page parameters `from` and `size`. `from` specifies the number of
|
|
|
|
snapshots to skip. `size` specifies the maximum number of snapshots to retrieve.
|
|
|
|
Defaults to `0` and `100` respectively.
|
2018-11-14 08:03:04 -05:00
|
|
|
|
|
|
|
include::../execution.asciidoc[]
|
|
|
|
|
|
|
|
[id="{upid}-{api}-response"]
|
2019-07-30 13:52:23 -04:00
|
|
|
==== Get model snapshots response
|
2018-11-14 08:03:04 -05:00
|
|
|
|
|
|
|
The returned +{response}+ contains the requested snapshots:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> The count of snapshots that were matched.
|
|
|
|
<2> The snapshots retrieved.
|