Create an API to create/update/delete service event rules

Hi,

We are automating the creation of teams, escalation policies, schedules, and global event rules. We use terraform to create these PagerDuty objects and the rest api to create the global event rules.

We cannot fully automate the set up as we have to manually enter the service event rules as there is no API for it. We use the service event rules to set the priority and severity of the incident based on the payload we have received from our alerting tool.

I can see this feature has already been requested in another topic a while go.

Can you please provide an update on this.

Thanks

Hi Yasin,

Thanks for posting your interest in a Service Event Rules API. We do have this feature on our roadmap for a future date so unfortunately it is not available at this time.

You mentioned that you are sending events and routing them using Global Event Rules. It is also possible to set Severity and Priority with a Global Event Rule. Can you help me understand why you would want to handle the logic with rules at both the Global and Service level?

Regards,
Sean

Hi Sean,

Thank you for your response, we do not want users meddling Global Event Rule, however, if they were to do this on on their own service it reduces the blast radius.

Regards
Yasin

Thanks for clarifying your use-case! I did note with Sean that we’ll reach out to you once permissions-based event rules are available to maintain via the REST API.

An additional use case that our company has identified is one covered by this topic here: Event Rules - add ability to continue processing rules . We want to be able to do something similar to this and manage setting the rules completely via the API as we store all our configuration for PD as code.