[DOCS] Extract the cron docs from Watcher docs and add to the API conventions. (#56313)

* [DOCS] Promote cron expressions info from Watcher to a separate topic.

* Fix table error

* Fixed xref

* Apply suggestions from code review

Co-authored-by: James Rodewig <james.rodewig@elastic.co>

* Incorporated review feedback

Co-authored-by: James Rodewig <james.rodewig@elastic.co>
This commit is contained in:
debadair 2020-05-12 15:32:47 -07:00 committed by GitHub
parent cde5126620
commit 1412e80266
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 224 additions and 201 deletions

View file

@ -1,5 +1,3 @@
[role="xpack"]
[testenv="basic"]
[[slm-api-put-policy]]
=== Put snapshot lifecycle policy API
++++
@ -109,7 +107,7 @@ Minimum number of snapshots to retain, even if the snapshots have expired.
====
`schedule`::
(Required, <<schedule-cron,Cron scheduler configuration>>)
(Required, <<cron-expressions,Cron syntax>>)
Periodic or absolute schedule at which the policy creates snapshots and deletes
expired snapshots. Schedule changes to existing policies are applied immediately.
@ -147,4 +145,4 @@ PUT /_slm/policy/daily-snapshots
<6> Optional retention configuration
<7> Keep snapshots for 30 days
<8> Always keep at least 5 successful snapshots, even if they're more than 30 days old
<9> Keep no more than 50 successful snapshots, even if they're less than 30 days old
<9> Keep no more than 50 successful snapshots, even if they're less than 30 days old