The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Opsgenie Eleastic X-pack set priority

Nigel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 23, 2019

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 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Emirhan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 28, 2019

Hey Nigel, 

 

Thank you for contacting Opsgenie Community!

Sorry for the delay getting back to you. At this point, API endpoint based integrations don't support the custom priority mapping feature. We have a ticket open right now to update the interface so that the option isn't there, since it's understandably confusing to see in the drop-down.

Therefore, we would recommend you to define different create alert rules under X-Pack Alerting integration and define filters for each of these create alert rules, in which conditions alerts should be raised in different priorities.

For example, if "Total Hits" contains/equals "XX", then create an alert with P1/2/3/4/5 priority. 

 

Hope this helps,

Best regards,

Nigel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 28, 2019

thank you, for the information and confirming this

TAGS
AUG Leaders

Atlassian Community Events