revert-model-snapshot.asciidoc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --
  2. :api: revert-model-snapshot
  3. :request: RevertModelSnapshotRequest
  4. :response: RevertModelSnapshotResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Revert Model Snapshot API
  8. The Revert Model Snapshot API provides the ability to revert to a previous {ml} model snapshot.
  9. It accepts a +{request}+ object and responds
  10. with a +{response}+ object.
  11. [id="{upid}-{api}-request"]
  12. ==== Revert Model Snapshot Request
  13. A +{request}+ requires the following arguments:
  14. ["source","java",subs="attributes,callouts,macros"]
  15. --------------------------------------------------
  16. include-tagged::{doc-tests-file}[{api}-request]
  17. --------------------------------------------------
  18. <1> Constructing a new request referencing existing `jobId` and `snapshotId` values.
  19. ==== Optional Arguments
  20. The following arguments are optional:
  21. ["source","java",subs="attributes,callouts,macros"]
  22. --------------------------------------------------
  23. include-tagged::{doc-tests-file}[{api}-delete-intervening-results]
  24. --------------------------------------------------
  25. <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
  26. include::../execution.asciidoc[]
  27. [id="{upid}-{api}-response"]
  28. ==== Revert Job Response
  29. A +{response}+ contains the full representation of the reverted `ModelSnapshot`.
  30. ["source","java",subs="attributes,callouts,macros"]
  31. --------------------------------------------------
  32. include-tagged::{doc-tests-file}[{api}-response]
  33. --------------------------------------------------
  34. <1> The reverted `ModelSnapshot`