oncall-engine/engine/apps/webhooks/signals.py
Michael Derynck cef748ed4c
Add users_to_be_notified to new webhooks payload (#1798)
- Change FIRING trigger for webhooks to be sent after escalation
snapshot has been computed
- Extract users from `notify_to_users_queue` and `notify_schedule` from
escalation snapshot to populate `users_to_be_notified` in webhook
payload
2023-04-20 16:13:48 +00:00

6 lines
311 B
Python

from apps.alerts.signals import alert_group_action_triggered_signal, alert_group_escalation_snapshot_built
from .listeners import on_action_triggered, on_alert_group_created
alert_group_escalation_snapshot_built.connect(on_alert_group_created)
alert_group_action_triggered_signal.connect(on_action_triggered)