-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13e139c
commit 3cb2273
Showing
1 changed file
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,8 @@ def __init__(self, err: Exception): | |
"Number of alerts we calculated", | ||
) | ||
|
||
ANIRUDH_DISTINCT_ID = "wcPbDRs08GtNzrNIXfzHvYAkwUaekW7UrAo4y3coznT" | ||
|
||
|
||
@shared_task(ignore_result=True) | ||
def checks_cleanup_task() -> None: | ||
|
@@ -102,7 +104,7 @@ def alerts_backlog_task() -> None: | |
HOURLY_ALERTS_BACKLOG_GAUGE.set(hourly_alerts_breaching_sla) | ||
|
||
posthoganalytics.capture( | ||
"[email protected]", | ||
ANIRUDH_DISTINCT_ID, | ||
"alert check backlog", | ||
properties={ | ||
"alert_check_frequency": AlertCalculationInterval.HOURLY, | ||
|
@@ -123,7 +125,7 @@ def alerts_backlog_task() -> None: | |
DAILY_ALERTS_BACKLOG_GAUGE.set(daily_alerts_breaching_sla) | ||
|
||
posthoganalytics.capture( | ||
"[email protected]", | ||
ANIRUDH_DISTINCT_ID, | ||
"alert check backlog", | ||
properties={ | ||
"alert_check_frequency": AlertCalculationInterval.DAILY, | ||
|
@@ -264,7 +266,7 @@ def check_alert(alert_id: str) -> None: | |
ALERT_CHECK_ERROR_COUNTER.inc() | ||
|
||
posthoganalytics.capture( | ||
alert.created_by.email, | ||
alert.created_by.distinct_id, | ||
Check failure on line 269 in posthog/tasks/alerts/checks.py GitHub Actions / Python code quality checks
|
||
"alert check failed", | ||
properties={ | ||
"alert_id": alert.id, | ||
|
@@ -308,7 +310,7 @@ def check_alert_and_notify_atomically(alert: AlertConfiguration) -> None: | |
|
||
# Event to count alert checks | ||
posthoganalytics.capture( | ||
alert.created_by.email, | ||
alert.created_by.distinct_id, | ||
Check failure on line 313 in posthog/tasks/alerts/checks.py GitHub Actions / Python code quality checks
|
||
"alert check", | ||
properties={ | ||
"alert_id": alert.id, | ||
|
@@ -331,7 +333,7 @@ def check_alert_and_notify_atomically(alert: AlertConfiguration) -> None: | |
evaluation_error_message = traceback.format_exc() | ||
|
||
posthoganalytics.capture( | ||
alert.created_by.email, | ||
alert.created_by.distinct_id, | ||
Check failure on line 336 in posthog/tasks/alerts/checks.py GitHub Actions / Python code quality checks
|
||
"alert check failed", | ||
properties={ | ||
"alert_id": alert.id, | ||
|
@@ -371,7 +373,7 @@ def check_alert_and_notify_atomically(alert: AlertConfiguration) -> None: | |
evaluation_error_message = traceback.format_exc() | ||
|
||
posthoganalytics.capture( | ||
alert.created_by.email, | ||
alert.created_by.distinct_id, | ||
Check failure on line 376 in posthog/tasks/alerts/checks.py GitHub Actions / Python code quality checks
|
||
"alert check failed", | ||
properties={ | ||
"alert_id": alert.id, | ||
|