Alerting error: Can't get text on a START_OBJECT

Hi @gmmorris ,

Below screenshots of my query :


So basically I was trying to query: to get avergage of total_quantity...
I'm getting the result when i do sample run.

But when i try to create monitor , it gives the error:
[illegal_state_exception] Can't get text on a START_OBJECT at 1:899