Skip to content

Commit 08a4d12

Browse files
committed
pass notification uuid down in msteams
1 parent 7373c8b commit 08a4d12

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/sentry/integrations/msteams/card_builder/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,15 @@ def build_incident_attachment(
3636
incident: Incident,
3737
new_status: IncidentStatus,
3838
metric_value: int | None = None,
39+
notification_uuid: str | None = None,
3940
) -> Dict[str, Any]:
40-
data = incident_attachment_info(incident, new_status, metric_value)
41+
data = incident_attachment_info(
42+
incident,
43+
new_status,
44+
metric_value,
45+
notification_uuid=notification_uuid,
46+
referrer="metric_alert_msteams",
47+
)
4148

4249
colors = {"Resolved": "good", "Warning": "warning", "Critical": "attention"}
4350

src/sentry/integrations/msteams/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def send_incident_alert_notification(
108108
if action.target_identifier is None:
109109
raise ValueError("Can't send without `target_identifier`")
110110

111-
attachment = build_incident_attachment(incident, new_status, metric_value)
111+
attachment = build_incident_attachment(incident, new_status, metric_value, notification_uuid)
112112
integration_service.send_msteams_incident_alert_notification(
113113
integration_id=action.integration_id,
114114
channel=action.target_identifier,

0 commit comments

Comments
 (0)