block: origin censorship is a warning, not critical

This commit is contained in:
Iain Learmonth 2022-05-11 14:25:58 +01:00
parent a7432a6b96
commit ad63a9ff41

View file

@ -53,7 +53,7 @@ def threshold_origin(domain_name):
])
block_perc = round((total_blocks / total * 100), 1)
ooni[country]["block_perc"] = block_perc
ooni[country]["state"] = AlarmState.CRITICAL if block_perc > 20 else AlarmState.OK
ooni[country]["state"] = AlarmState.WARNING if block_perc > 20 else AlarmState.OK
ooni[country]["message"] = f"Blocked in {block_perc}% of measurements"
return ooni