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

Support multiple templates #3

@sciurus

Description

@sciurus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions