Compare or script in example of watcher documentation

alerting

(Jettro Coenradie) #1

Hi, I am reading the documentation and learning a long the way. In the sample on the following page a script is used in the transformation. I think this example is the perfect example for a condition based approach. Wouldn't that be a better example for people learning about their first watchers?

https://www.elastic.co/guide/en/watcher/current/watch-definition.html


(Uri Boness) #2

Hey Jettro,

So in the getting started pages, we indeed left out the transform (as you don't really always need it). The page you're referring to is not part of the getting started, but more of a deep dive in what makes a watch and transform is one of those constructs. So the example there is just to show how it fits in the "global" picture.. at least that's the rationale around it.


(system) #3