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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.