@@ -58,7 +58,7 @@ def resolve(
58
58
):
59
59
pass
60
60
61
- def record_sent_analytics (
61
+ def record_alert_sent_analytics (
62
62
self , external_id : int | str | None = None , notification_uuid : str | None = None
63
63
):
64
64
analytics .record (
@@ -177,7 +177,7 @@ def email_users(
177
177
notification_uuid ,
178
178
)
179
179
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 )
181
181
182
182
def build_message (self , context , status , user_id ) -> MessageBuilder :
183
183
display = self .status_display [status ]
@@ -214,7 +214,7 @@ def send_alert(
214
214
self .action , self .incident , metric_value , new_status , notification_uuid
215
215
)
216
216
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 )
218
218
219
219
220
220
@AlertRuleTriggerAction .register_type (
@@ -238,7 +238,7 @@ def send_alert(
238
238
self .action , self .incident , metric_value , new_status , notification_uuid
239
239
)
240
240
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 )
242
242
243
243
244
244
@AlertRuleTriggerAction .register_type (
@@ -262,7 +262,7 @@ def send_alert(
262
262
self .action , self .incident , metric_value , new_status , notification_uuid
263
263
)
264
264
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 )
266
266
267
267
268
268
@AlertRuleTriggerAction .register_type (
@@ -286,7 +286,7 @@ def send_alert(
286
286
self .action , self .incident , metric_value , new_status , notification_uuid
287
287
)
288
288
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 )
290
290
291
291
292
292
@AlertRuleTriggerAction .register_type (
@@ -309,7 +309,7 @@ def send_alert(
309
309
self .action , self .incident , new_status , metric_value , notification_uuid
310
310
)
311
311
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 )
313
313
314
314
315
315
def format_duration (minutes ):
0 commit comments