Change threshold to warn earlier about soon-to-expire domain

This commit is contained in:
Alexandre Aubin 2020-04-29 02:44:39 +02:00
parent b528336fd0
commit 415e805f74

View file

@ -170,9 +170,9 @@ class DNSRecordsDiagnoser(Diagnoser):
expire_in = expire_date - datetime.now()
alert_type = "success"
if expire_in <= timedelta(7):
if expire_in <= timedelta(15):
alert_type = "error"
elif expire_in <= timedelta(30):
elif expire_in <= timedelta(45):
alert_type = "warning"
args = {