mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 02:00:46 +08:00
feat(UME): 切换marker分页并简化告警表字段
告警同步改为按响应头 marker 连续迭代,支持 iterator is null 的500尾页兜底,同时移除告警表中的 ne_name/user_label 冗余字段,统一在查询层与网元表 join 补齐展示信息。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
3ea4f08bea
commit
267eddb273
8 changed files with 181 additions and 111 deletions
|
|
@ -180,8 +180,6 @@ class UmeAlarmCurrent(Base):
|
|||
|
||||
alarm_key: Mapped[str] = mapped_column(String(256), primary_key=True)
|
||||
ne_id: Mapped[str] = mapped_column(String(128), default="", index=True)
|
||||
ne_name: Mapped[str] = mapped_column(String(256), default="", index=True)
|
||||
user_label: Mapped[str] = mapped_column(String(256), default="", index=True)
|
||||
object_name: Mapped[str] = mapped_column(String(512), default="", index=True)
|
||||
event_type: Mapped[str] = mapped_column(String(128), default="")
|
||||
native_probable_cause: Mapped[str] = mapped_column(String(256), default="")
|
||||
|
|
@ -199,8 +197,6 @@ class UmeAlarmHistory(Base):
|
|||
|
||||
alarm_key: Mapped[str] = mapped_column(String(256), primary_key=True)
|
||||
ne_id: Mapped[str] = mapped_column(String(128), default="", index=True)
|
||||
ne_name: Mapped[str] = mapped_column(String(256), default="", index=True)
|
||||
user_label: Mapped[str] = mapped_column(String(256), default="", index=True)
|
||||
object_name: Mapped[str] = mapped_column(String(512), default="", index=True)
|
||||
event_type: Mapped[str] = mapped_column(String(128), default="")
|
||||
native_probable_cause: Mapped[str] = mapped_column(String(256), default="")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue