Execute Watch w/ vars

alerting

#1

Is there a way to set some vars in the execution context when a watch is executed via the Execute Watch API?

I am writing some end to end tests and would like to change a couple fields when testing vs when executed normally. I know how to make the mustache scripts work if I could only put them in...

Thanks


(Uri Boness) #2

Currently the execute API doesn't enable you to provide initial vars for the execution context. It's an interesting use case though. The execute API does enable you to define an alternative input, would that do the trick?


#3

Probably not for what I'm trying to accomplish which is to create an end-to-end test that proves my System Under Test is creating watches correctly and prove it by executing said watch w/ some known data. However, I might go down that path for a lower level unit/integration test.

Thanks anyways!


(system) #4