OpenSearch/plugin
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
..
bin/x-pack Usability enhancements for certificate generation (elastic/x-pack-elasticsearch#2561) 2017-10-30 13:08:31 +11:00
bwc-snapshot-dummy-projects Consolidate version numbering semantics (elastic/x-pack-elasticsearch#3078) 2017-11-23 20:23:05 +00:00
config/x-pack
forbidden Fix LDAP Authc connections deadlock (elastic/x-pack-elasticsearch#2587) 2017-10-09 13:06:12 +03:00
keys
licenses Add "client-api-objects" dependency for xpack plugin and transport-client (elastic/x-pack-elasticsearch#2995) 2017-11-15 09:49:00 -07:00
ml-cpp-snapshot [BUILD] Make AWS error message more informative 2017-09-14 14:46:48 +01:00
src Watcher: Add transform input for chained input (elastic/x-pack-elasticsearch#2861) 2017-11-27 13:27:56 +01:00
build.gradle Remove InternalClient and InternalSecurityClient (elastic/x-pack-elasticsearch#3054) 2017-11-22 08:35:18 -07:00