I have created a Monitor in which I have added a trigger with ctx.results[0].hits.total > 7 condition.
In the message for Action for this trigger when I try to get the hits count by accessing {{ctx.results[0].hits.total}} it doesn't print anything.
How can I access the total in my Action message?
We are using AWS managed ElasticSearch Service