How can I send a field value in the watchers' actions (pager duty notifications)?
For example:
This one works and return number of total hits:
"description":"Total Hits # {{ctx.payload.hits.total}}"
But I want to get the field value of the top hit:
something like this, but it doesn't work (instead {{ctx.payload.hits.hits.get(0)._source.fieldname}} just returns empty value):
"description":"Top Hit Field {{ctx.payload.hits.hits.get(0)._source.fieldname}}"