2017-03-28 17:23:01 -04:00
|
|
|
[[input]]
|
|
|
|
== Inputs
|
|
|
|
|
|
|
|
When a watch is triggered, its _input_ loads data into the execution
|
|
|
|
context. This payload is accessible during the subsequent watch execution
|
|
|
|
phases. For example, you can base a watch's condition on the data loaded by its
|
|
|
|
input.
|
|
|
|
|
|
|
|
{watcher} supports four input types:
|
|
|
|
|
|
|
|
* <<input-simple, `simple`>>: load static data into the execution context.
|
|
|
|
* <<input-search, `search`>>: load the results of a search into the execution
|
|
|
|
context.
|
|
|
|
* <<input-http, `http`>>: load the results of an HTTP request into the execution
|
|
|
|
context.
|
|
|
|
* <<input-chain, `chain`>>: use a series of inputs to load data into the
|
|
|
|
execution context.
|
|
|
|
|
|
|
|
NOTE: If you don't define an input for a watch, an empty payload is loaded
|
|
|
|
into the execution context.
|
|
|
|
|
2018-05-23 12:37:55 -04:00
|
|
|
:edit_url: https://github.com/elastic/elasticsearch/edit/{branch}/x-pack/docs/en/watcher/input/simple.asciidoc
|
2017-03-28 17:23:01 -04:00
|
|
|
include::input/simple.asciidoc[]
|
|
|
|
|
2018-05-23 12:37:55 -04:00
|
|
|
:edit_url: https://github.com/elastic/elasticsearch/edit/{branch}/x-pack/docs/en/watcher/input/search.asciidoc
|
2017-03-28 17:23:01 -04:00
|
|
|
include::input/search.asciidoc[]
|
|
|
|
|
2018-05-23 12:37:55 -04:00
|
|
|
:edit_url: https://github.com/elastic/elasticsearch/edit/{branch}/x-pack/docs/en/watcher/input/http.asciidoc
|
2017-03-28 17:23:01 -04:00
|
|
|
include::input/http.asciidoc[]
|
|
|
|
|
2018-05-23 12:37:55 -04:00
|
|
|
:edit_url: https://github.com/elastic/elasticsearch/edit/{branch}/x-pack/docs/en/watcher/input/chain.asciidoc
|
2017-03-28 17:23:01 -04:00
|
|
|
include::input/chain.asciidoc[]
|