修改说明

This commit is contained in:
zhaojie
2025-09-08 15:27:22 +08:00
parent 8083f136c9
commit e08b570f22
26 changed files with 3524 additions and 21 deletions

View File

@@ -96,6 +96,7 @@ class Alert(Base):
rule_name = Column(String(100), nullable=False)
alert_type = Column(String(50), nullable=False)
level = Column(String(20), nullable=False) # info, warning, error, critical
severity = Column(String(20), nullable=False, default="medium") # low, medium, high, critical
message = Column(Text, nullable=False)
data = Column(Text) # JSON格式的预警数据
is_active = Column(Boolean, default=True)