feat: seed default wireless alert rules on tenant creation

This commit is contained in:
Jason Staack
2026-03-15 20:02:00 -05:00
parent 3600a8e0ce
commit 7ef849550c

View File

@@ -108,6 +108,8 @@ async def create_tenant(
("High Memory Usage", "memory_used_pct", "gt", 90, 5, "warning"),
("High Disk Usage", "disk_used_pct", "gt", 85, 3, "warning"),
("Device Offline", "device_offline", "eq", 1, 1, "critical"),
("Wireless Signal Degraded", "signal_strength", "lt", -75, 3, "warning"),
("Wireless CCQ Low", "ccq", "lt", 50, 3, "warning"),
]
for name, metric, operator, threshold, duration, sev in default_rules:
await db.execute(