Hello,
We are trying to set Customer values to Opsgenie priority from the PRTG integration by assigning our own mapped priority values. We are trying to map the priority PRTG is sending over to Opsgenie which comes in the form of stars (*) but can't seem to work out how to get this to map.
This is an example of what we have attempted which hasn't worked.
priority: '{{ if eq .priority "*****"}}P1{{else if eq .priority "****"}}P2{{else if eq .priority "***"}}P3{{else if eq .priority "**"}}}}P4{{else}}P5{{end}}'
Have tried to find similar issues on your forums but haven't found a solution.
Many thanks