Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Support multiple templates #3

Open
sciurus opened this issue Jul 26, 2018 · 0 comments
Open

Support multiple templates #3

sciurus opened this issue Jul 26, 2018 · 0 comments

Comments

@sciurus
Copy link
Contributor

sciurus commented Jul 26, 2018

Currently the default template is hardcoded.

We should support additional templates that users could optionally choose via a tag on their alert, perhaps just named template?

The pagerduty code will need to be modified to extract this tag and return a map of components to templates, which sync would use to lookup a value to pass into open_incident.

This raises the question of what to do if there are multiple pagerduty alerts for the same statuspage component that have different templates chosen. My inclination is to log an error and use the first template.

https://github.com/mozilla-services/pagerstatus/blob/master/chalicelib/statuspage.py#L85

@sciurus sciurus changed the title Suport multiple templates Support multiple templates Jul 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant