feat(ume): key alarm forward to OClaw via WSS and AI monitor UI

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-06-22 11:17:31 +08:00
parent 9a39ddfcc7
commit 1f1b42e8bf
18 changed files with 1079 additions and 32 deletions

View file

@ -35,7 +35,7 @@ const en = {
titleCollect: "Batch Collect",
navUme: "UME",
netxApi: "netx api",
oclawBridge: "oclaw bridge",
oclawBridge: "oclaw WSS",
language: "Language",
moreMenu: "More",
langZh: "中文",
@ -335,6 +335,36 @@ const en = {
wsAutoRefresh: "Auto refresh",
wsLogsEmpty: "No logs yet (connect WSS after establishing subscription)",
},
keyAlert: {
title: "AI alarm monitor (OClaw WhatsApp)",
help: "Match UME key alarms by notificationId and push via OClaw WebSocket. Uses NETX_OCLAW_ALARM_WS_URL + NETX_OCLAW_ALARM_WS_TOKEN (OClaw OCLAW_NETX_BRIDGE_TOKEN), separate from analyze token.",
ws: "OClaw WSS",
wsConnected: "connected",
wsDisconnected: "disconnected",
wsDisabled: "disabled",
publishedOk: "published ok",
publishedFail: "published fail",
queue: "queue",
notificationId: "notificationId",
notificationIdPh: "Enter or pick notificationId",
label: "label",
labelPh: "optional, e.g. BGP Down",
forwardOnClear: "forward clear events",
add: "Add monitor ID",
adding: "Adding…",
delete: "Delete",
pickFromAlarms: "Pick from current alarms",
emptyRules: "No notificationId rules yet",
colId: "notificationId",
colLabel: "label",
colPublished: "published",
colAttempts: "attempts",
colLast: "last push",
colActions: "actions",
addOk: "Rule added",
deleteOk: "Deleted",
confirmDelete: "Delete this notificationId monitor rule?",
},
sync: {
title: "UME sync",
inventory: "Sync inventory",

View file

@ -35,7 +35,7 @@ const zh = {
titleCollect: "批量采集",
navUme: "UME 对接",
netxApi: "netx api",
oclawBridge: "oclaw bridge",
oclawBridge: "oclaw WSS",
language: "语言",
moreMenu: "更多",
langZh: "中文",
@ -333,6 +333,36 @@ const zh = {
wsAutoRefresh: "自动刷新",
wsLogsEmpty: "暂无日志(建立订阅并连接 WSS 后会出现连接、收包、重连等记录)",
},
keyAlert: {
title: "AI 告警监控(OClaw WhatsApp)",
help: "按 notificationId 匹配 UME 关键告警,经 OClaw WebSocket 推送到 WhatsApp 群。使用独立配置:NETX_OCLAW_ALARM_WS_URL + NETX_OCLAW_ALARM_WS_TOKEN(对应 OClaw OCLAW_NETX_BRIDGE_TOKEN)。",
ws: "OClaw WSS",
wsConnected: "已连接",
wsDisconnected: "未连接",
wsDisabled: "未启用",
publishedOk: "发布成功",
publishedFail: "发布失败",
queue: "待发队列",
notificationId: "notificationId",
notificationIdPh: "输入或从下方选择 notificationId",
label: "规则描述",
labelPh: "可选,如 BGP Down",
forwardOnClear: "转发清除告警",
add: "添加监控 ID",
adding: "添加中…",
delete: "删除",
pickFromAlarms: "从当前告警选择",
emptyRules: "尚未配置监控 notificationId",
colId: "notificationId",
colLabel: "描述",
colPublished: "发布次数",
colAttempts: "尝试次数",
colLast: "最近推送",
colActions: "操作",
addOk: "已添加监控规则",
deleteOk: "已删除",
confirmDelete: "确定删除该 notificationId 监控规则?",
},
sync: {
title: "UME 同步",
inventory: "同步 Inventory",