mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-05-21 15:14:45 +02:00
fix: leftover old severity references (info→routine, filter dropdown)
This commit is contained in:
parent
49f2838048
commit
2f0cf520fa
3 changed files with 3 additions and 3 deletions
|
|
@ -194,7 +194,7 @@ function AlertHistoryTable({
|
||||||
'packet_flood',
|
'packet_flood',
|
||||||
]
|
]
|
||||||
|
|
||||||
const severities = ['all', 'critical', 'warning', 'watch', 'info']
|
const severities = ["all", "immediate", "priority", "routine"]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-bg-card border border-border rounded-lg">
|
<div className="bg-bg-card border border-border rounded-lg">
|
||||||
|
|
|
||||||
|
|
@ -274,7 +274,7 @@ const RULE_TEMPLATES = [
|
||||||
enabled: true,
|
enabled: true,
|
||||||
trigger_type: "schedule" as const,
|
trigger_type: "schedule" as const,
|
||||||
categories: [] as string[],
|
categories: [] as string[],
|
||||||
min_severity: "info",
|
min_severity: "routine",
|
||||||
schedule_frequency: "daily" as const,
|
schedule_frequency: "daily" as const,
|
||||||
schedule_time: "07:00",
|
schedule_time: "07:00",
|
||||||
schedule_time_2: "",
|
schedule_time_2: "",
|
||||||
|
|
|
||||||
2
meshai/env/usgs.py
vendored
2
meshai/env/usgs.py
vendored
|
|
@ -376,7 +376,7 @@ class USGSStreamsAdapter:
|
||||||
flood_status = "Action Stage"
|
flood_status = "Action Stage"
|
||||||
|
|
||||||
# Fall back to legacy manual thresholds
|
# Fall back to legacy manual thresholds
|
||||||
if severity == "info":
|
if severity == "routine":
|
||||||
threshold = self._flood_thresholds.get(site_id, {}).get(param_type)
|
threshold = self._flood_thresholds.get(site_id, {}).get(param_type)
|
||||||
if threshold and value > threshold:
|
if threshold and value > threshold:
|
||||||
severity = "priority"
|
severity = "priority"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue