File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 9
9
from sentry import audit_log
10
10
from sentry .api .serializers .rest_framework .rule import RuleSerializer
11
11
from sentry .db .models import BoundedPositiveIntegerField
12
+ from sentry .issues .grouptype import MonitorIncidentType
12
13
from sentry .models .group import Group
13
14
from sentry .models .project import Project
14
15
from sentry .models .rule import Rule , RuleActivity , RuleActivityType , RuleSource
@@ -392,7 +393,6 @@ def update_issue_alert_rule(
392
393
393
394
394
395
def ensure_cron_detector (monitor : Monitor ):
395
- from sentry .issues .grouptype import MonitorCheckInFailure
396
396
397
397
try :
398
398
with atomic_transaction (using = router .db_for_write (DataSource )):
@@ -403,7 +403,7 @@ def ensure_cron_detector(monitor: Monitor):
403
403
)
404
404
if created :
405
405
detector = Detector .objects .create (
406
- type = MonitorCheckInFailure .slug ,
406
+ type = MonitorIncidentType .slug ,
407
407
project_id = monitor .project_id ,
408
408
name = monitor .name ,
409
409
owner_user_id = monitor .owner_user_id ,
You can’t perform that action at this time.
0 commit comments