get-model-snapshots.asciidoc 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. --
  2. :api: get-model-snapshots
  3. :request: GetModelSnapshotsRequest
  4. :response: GetModelSnapshotsResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Get model snapshots API
  8. Retrieves one or more model snapshot results.
  9. It accepts a +{request}+ object and responds with a +{response}+ object.
  10. [id="{upid}-{api}-request"]
  11. ==== Get model snapshots request
  12. A +{request}+ object gets created with an existing non-null `jobId`.
  13. ["source","java",subs="attributes,callouts,macros"]
  14. --------------------------------------------------
  15. include-tagged::{doc-tests-file}[{api}-request]
  16. --------------------------------------------------
  17. <1> Constructing a new request referencing an existing `jobId`.
  18. ==== Optional arguments
  19. The following arguments are optional:
  20. ["source","java",subs="attributes,callouts,macros"]
  21. --------------------------------------------------
  22. include-tagged::{doc-tests-file}[{api}-snapshot-id]
  23. --------------------------------------------------
  24. <1> The ID of the snapshot to get. Otherwise, it will return all snapshots.
  25. ["source","java",subs="attributes,callouts,macros"]
  26. --------------------------------------------------
  27. include-tagged::{doc-tests-file}[{api}-desc]
  28. --------------------------------------------------
  29. <1> If `true`, the snapshots are sorted in descending order. Defaults to `false`.
  30. ["source","java",subs="attributes,callouts,macros"]
  31. --------------------------------------------------
  32. include-tagged::{doc-tests-file}[{api}-end]
  33. --------------------------------------------------
  34. <1> Snapshots with timestamps earlier than this time will be returned.
  35. ["source","java",subs="attributes,callouts,macros"]
  36. --------------------------------------------------
  37. include-tagged::{doc-tests-file}[{api}-sort]
  38. --------------------------------------------------
  39. <1> The field to sort snapshots on. Defaults to `timestamp`.
  40. ["source","java",subs="attributes,callouts,macros"]
  41. --------------------------------------------------
  42. include-tagged::{doc-tests-file}[{api}-start]
  43. --------------------------------------------------
  44. <1> Snapshots with timestamps on or after this time will be returned.
  45. ["source","java",subs="attributes,callouts,macros"]
  46. --------------------------------------------------
  47. include-tagged::{doc-tests-file}[{api}-page]
  48. --------------------------------------------------
  49. <1> The page parameters `from` and `size`. `from` specifies the number of
  50. snapshots to skip. `size` specifies the maximum number of snapshots to retrieve.
  51. Defaults to `0` and `100` respectively.
  52. include::../execution.asciidoc[]
  53. [id="{upid}-{api}-response"]
  54. ==== Get model snapshots response
  55. The returned +{response}+ contains the requested snapshots:
  56. ["source","java",subs="attributes,callouts,macros"]
  57. --------------------------------------------------
  58. include-tagged::{doc-tests-file}[{api}-response]
  59. --------------------------------------------------
  60. <1> The count of snapshots that were matched.
  61. <2> The snapshots retrieved.