Access Nested Objects using Painless for Alerting to Create Trigger Condition

Ref Link: How to write trigger condition - #6 by bijeshr

Triigger condition:

return ctx.results[0].aggregations.tag_names.buckets[0].metrics.max > 185

OUTPUT:
True