Retrieving count values and checking threshold using watcher

Hello, I am trying to use elastic search to monitor a connection every second and I am trying to set a condition in my watch JSON that takes the count value for each hit and checks to see if it is greater than a threshold I specify. I do not know how to retrieve this value and all I am able to access so far is the ctx.payload.hits.total. What should my condition structure be if I want to check the count at 1 second intervals and compare it to my threshold?

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