mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-30 02:13:33 -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
23 lines
700 B
Text
23 lines
700 B
Text
[role="xpack"]
|
|
[[condition-never]]
|
|
=== {watcher} never condition
|
|
++++
|
|
<titleabbrev>Never condition</titleabbrev>
|
|
++++
|
|
|
|
Use the `never` condition to skip performing the watch actions whenever the watch is triggered. The watch input is processed, a record is
|
|
added to the watch history, and watch execution ends.
|
|
This condition is generally used for testing.
|
|
|
|
==== Using the never condition
|
|
|
|
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" : {}
|
|
}
|
|
--------------------------------------------------
|
|
// NOTCONSOLE
|