mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -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
29 lines
865 B
Text
29 lines
865 B
Text
[role="xpack"]
|
|
[[condition-always]]
|
|
=== {watcher} always condition
|
|
++++
|
|
<titleabbrev>Always condition</titleabbrev>
|
|
++++
|
|
|
|
Use the `always` condition to perform the watch actions whenever the watch is triggered, unless they are
|
|
<<actions-ack-throttle,throttled>>.
|
|
|
|
The `always` condition enables you to perform watch actions on a fixed schedule,
|
|
such as, _"Every Friday at noon, send a status report email to
|
|
sys.admin@example.com."_
|
|
|
|
==== Using the always condition
|
|
|
|
This is the default if you omit the condition definition from a watch.
|
|
|
|
There are no attributes to specify for the `always` condition. To explicitly
|
|
use this condition, specify the condition type and associate it with an empty
|
|
object:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
"condition" : {
|
|
"always" : {}
|
|
}
|
|
--------------------------------------------------
|
|
// NOTCONSOLE
|