Index all data from treshold watcher


I have a treshold alert on my data. The data is simply an integer "age" and "phone", and varchars of name and surname, and a date "time". I made a condition that checks if the age is below 18 in the data from last week:

WHEN min() OF age OVER all documents IS BELOW 18 FOR THE LAST 7 days

I got some data with age below 18, so it should trigger the alert, and it does. The action in treshold watcher is called "index" and it stores the returned data in the index. When I run GET in the console to get the data returned from Watcher I get:

    "_index" : "zwatchera",
    "_type" : "_doc",
    "_id" : "_CDX-HcBc-fQoHUyRRe1",
    "_score" : 1.0,
    "_source" : {
      "result" : 7.0

However, as you can see it sent only the value of the age that was below 18. In this example the age of 7 triggered the alert and it was all that was sent. Can I send the whole record that caused the error, with the name, surname and phone number?
Thanks in advance

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.