Skip to content

Commit b01cbfc

Browse files
committed
record_alert_sent_analytics
1 parent 5581d68 commit b01cbfc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: src/sentry/incidents/action_handlers.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def resolve(
5858
):
5959
pass
6060

61-
def record_sent_analytics(
61+
def record_alert_sent_analytics(
6262
self, external_id: int | str | None = None, notification_uuid: str | None = None
6363
):
6464
analytics.record(
@@ -177,7 +177,7 @@ def email_users(
177177
notification_uuid,
178178
)
179179
self.build_message(email_context, trigger_status, user_id).send_async(to=[email])
180-
self.record_sent_analytics(user_id, notification_uuid)
180+
self.record_alert_sent_analytics(user_id, notification_uuid)
181181

182182
def build_message(self, context, status, user_id) -> MessageBuilder:
183183
display = self.status_display[status]
@@ -214,7 +214,7 @@ def send_alert(
214214
self.action, self.incident, metric_value, new_status, notification_uuid
215215
)
216216
if success:
217-
self.record_sent_analytics(self.action.target_identifier, notification_uuid)
217+
self.record_alert_sent_analytics(self.action.target_identifier, notification_uuid)
218218

219219

220220
@AlertRuleTriggerAction.register_type(
@@ -238,7 +238,7 @@ def send_alert(
238238
self.action, self.incident, metric_value, new_status, notification_uuid
239239
)
240240
if success:
241-
self.record_sent_analytics(self.action.target_identifier, notification_uuid)
241+
self.record_alert_sent_analytics(self.action.target_identifier, notification_uuid)
242242

243243

244244
@AlertRuleTriggerAction.register_type(
@@ -262,7 +262,7 @@ def send_alert(
262262
self.action, self.incident, metric_value, new_status, notification_uuid
263263
)
264264
if success:
265-
self.record_sent_analytics(self.action.target_identifier, notification_uuid)
265+
self.record_alert_sent_analytics(self.action.target_identifier, notification_uuid)
266266

267267

268268
@AlertRuleTriggerAction.register_type(
@@ -286,7 +286,7 @@ def send_alert(
286286
self.action, self.incident, metric_value, new_status, notification_uuid
287287
)
288288
if success:
289-
self.record_sent_analytics(self.action.target_identifier, notification_uuid)
289+
self.record_alert_sent_analytics(self.action.target_identifier, notification_uuid)
290290

291291

292292
@AlertRuleTriggerAction.register_type(
@@ -309,7 +309,7 @@ def send_alert(
309309
self.action, self.incident, new_status, metric_value, notification_uuid
310310
)
311311
if success:
312-
self.record_sent_analytics(self.action.sentry_app_id, notification_uuid)
312+
self.record_alert_sent_analytics(self.action.sentry_app_id, notification_uuid)
313313

314314

315315
def format_duration(minutes):

0 commit comments

Comments
 (0)