Persist Escalation Policy for an Alert
When escalating an Alert we currently only save a reference to the Escalation Policy on the Pending Escalation records (IncidentManagement::PendingEscalations::Alert
).
These records are transient and are deleted once they have been escalated.
This means that when an Alert has been fully escalated, we don't have a record of which Policy was escalated.
This is a problem for a few reasons:
- When we introduce multiple policies, we need to know which one to re-escalate if the Alert is triggered again*
- When associating an incident <-> alert, we need a way to find which policy was used for the alert escalation, so we can set this for the incident escalation.
*We may choose to treat this as a full re-escalation, & calculate which Policy to use on any routing rules that exist etc.
Solution:
- Save the Escalation Policy used by an alert on the
Alert
model, or related table. - Save the time that escalations started (
created_at
of first pending escalation).
Edited by Sean Arnold