mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 03:10:46 +08:00
feat(ume): denormalize host_name onto alarms for display and grouping
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
95db646403
commit
21f7cfba41
5 changed files with 136 additions and 6 deletions
|
|
@ -168,6 +168,7 @@ class UmeAlarmCurrent(Base):
|
|||
|
||||
alarm_key: Mapped[str] = mapped_column(Text, primary_key=True)
|
||||
ne_id: Mapped[str] = mapped_column(String(128), default="", index=True)
|
||||
host_name: Mapped[str] = mapped_column(String(256), default="", index=True, comment="网元主机名(同步时从inventory联表写入)")
|
||||
object_name: Mapped[str] = mapped_column(Text, default="", index=True)
|
||||
event_type: Mapped[str] = mapped_column(Text, default="")
|
||||
native_probable_cause: Mapped[str] = mapped_column(Text, default="")
|
||||
|
|
@ -185,6 +186,7 @@ class UmeAlarmHistory(Base):
|
|||
|
||||
alarm_key: Mapped[str] = mapped_column(Text, primary_key=True)
|
||||
ne_id: Mapped[str] = mapped_column(String(128), default="", index=True)
|
||||
host_name: Mapped[str] = mapped_column(String(256), default="", index=True, comment="网元主机名(同步时从inventory联表写入)")
|
||||
object_name: Mapped[str] = mapped_column(Text, default="", index=True)
|
||||
event_type: Mapped[str] = mapped_column(Text, default="")
|
||||
native_probable_cause: Mapped[str] = mapped_column(Text, default="")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue