You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am trying to integrate several alerting systems into Opsgenie and they all have their own priority level and multiple variations of the alerts. To save some space in the alerts and keep management of the alerts to a minimum I wanted to see if it was possible to translate a value like "Severity: Critical" from the message into "P1" without using the filter.
I've made a regular expression to return the "Critical|High|Medium|Low" value provided in the email, I just need to convert it to a P1-5 value. Any help is appreciated.
{{ message.extract(/Severity: (.*)/) }}
Hi Sam,
In this case, you would need to use a filter. There is no way to convert strings from external sources to the necessary 'P' values after they reach Opsgenie. Keep in mind, you can setup multiple 'Create Alert' actions - one for each priority. Otherwise, you would need to use {{priority}} in the Priority field and convert the values to the format Opsgenie is expecting before they are received.
Thanks for the info. That was my fear, but I thought I should verify as I didn't want to have a long list for each item type + severity.
Thanks for the reply!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.