2019-09-11 01:32:51 +08:00
|
|
|
[role="xpack"]
|
2017-03-29 05:23:01 +08:00
|
|
|
[[condition-never]]
|
2020-12-09 05:04:32 +08:00
|
|
|
=== {watcher} never condition
|
|
|
|
++++
|
|
|
|
<titleabbrev>Never condition</titleabbrev>
|
|
|
|
++++
|
2017-03-29 05:23:01 +08: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-28 07:05:44 +08:00
|
|
|
==== Using the never condition
|
2017-03-29 05:23:01 +08: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-23 09:09:37 +08:00
|
|
|
// NOTCONSOLE
|