2019-09-10 13:32:51 -04:00
|
|
|
[role="xpack"]
|
2017-03-28 17:23:01 -04:00
|
|
|
[[condition-always]]
|
2019-09-30 13:18:50 -04:00
|
|
|
=== Always condition
|
2017-03-28 17:23:01 -04:00
|
|
|
|
|
|
|
Use the `always` condition to set the condition to `true`. This forces the watch
|
2019-09-30 13:18:50 -04:00
|
|
|
actions to be executed unless they are <<actions-ack-throttle,throttled>>.
|
2017-03-28 17:23:01 -04:00
|
|
|
|
|
|
|
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."_
|
|
|
|
|
2019-09-30 13:18:50 -04:00
|
|
|
==== Using the always condition
|
2017-03-28 17:23:01 -04:00
|
|
|
|
|
|
|
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" : {}
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
2018-06-22 21:09:37 -04:00
|
|
|
// NOTCONSOLE
|