Hay All
I am just getting started with opsgenie and i am trying, to get the watcher xpack in elastic to set the priority of the alert.
But i cant see how to do it.
any advise
``` Example of the Json code
"body": { "inline": {
"id": "{{ctx.watch_id}}-{{ctx.trigger.triggered_time}}",
"vars": {},
"trigger": {
"triggered_time": "{{ctx.trigger.triggered_time}}",
"scheduled_time": "{{ctx.trigger.scheduled_time}}"
},
"execution_time": "{{ ctx.execution_time }}",
"watch_id": "{{ctx.watch_id}} hostname12",
"payload":{
"hits":{
"hits":[],
"total": "{{ctx.payload.hits.total}}",
"max_score":"{{ctx.payload.hits.max_score}}"
}
}
}
}
````
I have tired to add priority in most places in the payload section, but no luck its like opsgenie is ignoring it