2019-09-10 13:32:51 -04:00
|
|
|
[role="xpack"]
|
2017-03-28 17:23:01 -04:00
|
|
|
[[condition-never]]
|
2019-09-30 13:18:50 -04:00
|
|
|
=== Never condition
|
2017-03-28 17:23:01 -04:00
|
|
|
|
|
|
|
Use the `never` condition to set the condition to `false`. This means the
|
|
|
|
watch actions are never executed when the watch is triggered. The watch input is
|
|
|
|
executed, a record is added to the watch history, and the watch execution ends.
|
|
|
|
This condition is generally used for testing.
|
|
|
|
|
2019-09-30 13:18:50 -04:00
|
|
|
==== Using the never condition
|
2017-03-28 17:23:01 -04:00
|
|
|
|
|
|
|
There are no attributes to specify for the `never` condition. To use the it,
|
|
|
|
you specify the condition type and associate it with an empty object:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
"condition" : {
|
|
|
|
"never" : {}
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
2018-06-22 21:09:37 -04:00
|
|
|
// NOTCONSOLE
|