OpenSearch/docs/en/watcher
Alexander Reelsen 6406c9816a Watcher: Add transform input for chained input (elastic/x-pack-elasticsearch#2861)
The chained input in watcher is a useful feature to
call several endpoints before execution a condition.
However it was pretty hard to modify data from a previous
input in order to be able to execute it in another input.

This commit adds a another input, called a `transform` input,
which allows you to do a transform as another input in a chained
input.

See this example

```
"input" : {
  "chain" : {
    "inputs" : [ <1>
      {
        "first" : {
          "simple" : { "path" : "/_search" }
        }
      },
      {
        "second" : {
          "transform" : {
            "script" : "return [ 'path' : 'ctx.payload.first.path' + '/' ]"
          }
        }
      },
      {
        "third" : {
          "http" : {
            "request" : {
              "host" : "localhost",
              "port" : 9200,
              "path" : "{{ctx.payload.second.path}}" <2>
            }
          }
        }
      }
    ]
  }
}
```

This allows for far more flexibility before executing the next input in a chained
one.

Original commit: elastic/x-pack-elasticsearch@3af9ba6e9b
2017-11-27 13:27:56 +01:00
..
actions [DOCS] Fixed typo 2017-11-22 10:02:24 -08:00
condition Convert script uses to use source/id keys (elastic/x-pack-elasticsearch#1670) 2017-06-09 08:29:36 -07:00
example-watches [DOCS] Fix typo 2017-07-14 14:31:53 -05:00
images Adding limitations of Watch Edit page (elastic/x-pack-elasticsearch#1014) 2017-04-19 11:12:54 -07:00
input Watcher: Add transform input for chained input (elastic/x-pack-elasticsearch#2861) 2017-11-27 13:27:56 +01:00
java Watcher: Replace _status field with status (elastic/x-pack-elasticsearch#1285) 2017-05-04 10:08:34 +02:00
transform Convert script uses to use source/id keys (elastic/x-pack-elasticsearch#1670) 2017-06-09 08:29:36 -07:00
trigger [DOCS] Create "en" translation directory (elastic/x-pack-elasticsearch#907) 2017-03-31 08:48:39 -07:00
actions.asciidoc Docs: Improve watcher action condition docs (elastic/x-pack-elasticsearch#2909) 2017-11-09 16:13:56 +01:00
condition.asciidoc Docs: Improve watcher action condition docs (elastic/x-pack-elasticsearch#2909) 2017-11-09 16:13:56 +01:00
customizing-watches.asciidoc Convert script uses to use source/id keys (elastic/x-pack-elasticsearch#1670) 2017-06-09 08:29:36 -07:00
encrypting-data.asciidoc [DOCS] Added sysgenkey command and watcher encryption settings (elastic/x-pack-elasticsearch#3043) 2017-11-20 08:44:43 -08:00
example-watches.asciidoc [DOCS] Create "en" translation directory (elastic/x-pack-elasticsearch#907) 2017-03-31 08:48:39 -07:00
getting-started.asciidoc [DOCS] Fixing cross doc links. 2017-07-20 11:25:02 -07:00
gs-index.asciidoc [DOCS] Updates to make GS minidoc build. 2017-07-20 11:24:57 -07:00
how-watcher-works.asciidoc [DOCS] Fixed broken link to put watch API 2017-09-14 14:12:20 -07:00
index.asciidoc [DOCS] Added sysgenkey command and watcher encryption settings (elastic/x-pack-elasticsearch#3043) 2017-11-20 08:44:43 -08:00
input.asciidoc [DOCS] Create "en" translation directory (elastic/x-pack-elasticsearch#907) 2017-03-31 08:48:39 -07:00
java.asciidoc [DOCS] Create "en" translation directory (elastic/x-pack-elasticsearch#907) 2017-03-31 08:48:39 -07:00
limitations.asciidoc Adding limitations of Watch Edit page (elastic/x-pack-elasticsearch#1014) 2017-04-19 11:12:54 -07:00
managing-watches.asciidoc [DOCS] Move watcher APIs to Elasticsearch Ref (elastic/x-pack-elasticsearch#1869) 2017-06-27 17:16:51 -07:00
release-notes.asciidoc [DOCS] Move watcher APIs to Elasticsearch Ref (elastic/x-pack-elasticsearch#1869) 2017-06-27 17:16:51 -07:00
transform.asciidoc [DOCS] Create "en" translation directory (elastic/x-pack-elasticsearch#907) 2017-03-31 08:48:39 -07:00
trigger.asciidoc [DOCS] Create "en" translation directory (elastic/x-pack-elasticsearch#907) 2017-03-31 08:48:39 -07:00
troubleshooting.asciidoc [DOCS] Create "en" translation directory (elastic/x-pack-elasticsearch#907) 2017-03-31 08:48:39 -07:00