mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
**Problem:** For historical reasons, source files for the Elasticsearch Guide's security, watcher, and Logstash API docs are housed in the `x-pack/docs` directory. This can confuse new contributors who expect Elasticsearch Guide docs to be located in `docs/reference`. **Solution:** - Move the security, watcher, and Logstash API doc source files to the `docs/reference` directory - Update doc snippet tests to use security Rel: https://github.com/elastic/platform-docs-team/issues/208
41 lines
No EOL
1.3 KiB
Text
41 lines
No EOL
1.3 KiB
Text
[role="xpack"]
|
|
[[schedule-interval]]
|
|
==== {watcher} interval schedule
|
|
++++
|
|
<titleabbrev>Interval schedule</titleabbrev>
|
|
++++
|
|
|
|
A <<trigger-schedule,`schedule`>> that triggers at a fixed time interval. The
|
|
interval can be set in seconds, minutes, hours, days, or weeks:
|
|
|
|
* `"Xs"` - trigger every `X` seconds. For example, `"30s"` means every 30 seconds.
|
|
* `"Xm"` - trigger every `X` minutes. For example, `"5m"` means every 5 minutes.
|
|
* `"Xh"` - trigger every `X` hours. For example, `"12h"` means every 12 hours.
|
|
* `"Xd"` - trigger every `X` days. For example, `"3d"` means every 3 days.
|
|
* `"Xw"` - trigger every `X` weeks. For example, `"2w"` means every 2 weeks.
|
|
|
|
If you don't specify a time unit, it defaults to seconds.
|
|
|
|
NOTE: The interval value differs from the standard _time value_ used in
|
|
Elasticsearch. You cannot configure intervals in milliseconds or
|
|
nanoseconds.
|
|
|
|
===== Configuring an interval schedule
|
|
|
|
To configure an `interval` schedule, you specify a string value that represents
|
|
the interval. If you omit the unit of time (`s`,`m`, `h`, `d`, or `w`), it
|
|
defaults to seconds.
|
|
|
|
For example, the following `interval` schedule triggers every five minutes:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
{
|
|
"trigger" : {
|
|
"schedule" : {
|
|
"interval" : "5m"
|
|
}
|
|
}
|
|
}
|
|
--------------------------------------------------
|
|
// NOTCONSOLE |