Skip to content

Commit

Permalink
[DOCS] Adds empty snapshot_id description to revert snapshot API docs (
Browse files Browse the repository at this point in the history
  • Loading branch information
szabosteve authored Dec 9, 2020
1 parent b3b2559 commit b1c11eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ Retrieves information about model snapshots.

`GET _ml/anomaly_detectors/<job_id>/model_snapshots/<snapshot_id>`


[[ml-get-snapshot-prereqs]]
== {api-prereq-title}

* If the {es} {security-features} are enabled, you must have `monitor_ml`,
`monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
<<security-privileges>> and {ml-docs-setup-privileges}.


[[ml-get-snapshot-path-parms]]
== {api-path-parms-title}

Expand All @@ -40,6 +42,7 @@ You can get all snapshots for all calendars by using `_all`,
by specifying `*` as the `<snapshot_id>`, or by omitting the `<snapshot_id>`.
--


[[ml-get-snapshot-request-body]]
== {api-request-body-title}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=job-id-anomaly-detection]
`<snapshot_id>`::
(Required, string)
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=snapshot-id]
+
--
You can specify `empty` as the <snapshot_id>. Reverting to the `empty` snapshot
means the {anomaly-job} starts learning a new model from scratch when it is
started.
--

[[ml-revert-snapshot-request-body]]
== {api-request-body-title}
Expand Down

0 comments on commit b1c11eb

Please sign in to comment.