I’ve just written my first event transformer, and I feel like I must be missing something.
My transformer is designed to read messages from AWS EventBridge aka CloudWatch Events (which are not handled properly by the existing CloudWatch integration - I’ll make another post about that).
I found a tutorial that uses
emitCEFEvents instead of
emitGenericEvents, which seems to let you specify severity, but I couldn’t get it to work, and when I went looking for documentation all I found was a forum post by someone (unsuccessfully?) seeking same.
The workaround I ended up with was having my transformer set a
details.severity property and then write service rules that look for
custom_details.severity and then set priority accordingly.
Surely there’s a better way, or am I just coming at this all wrong? I’m still pretty new to pagerduty, so anything’s possible. Thanks to anyone who can help!