ux: 系统告警统一加'📟【MoFin系统·XX】(非知微本人)'前缀——告警与知微本人消息可一眼区分
This commit is contained in:
@@ -105,7 +105,8 @@ def main():
|
||||
continue
|
||||
found += 1
|
||||
alerted.add(sid)
|
||||
msg = (f"🌀 agent 螺旋嫌疑\n"
|
||||
msg = (f"📟【MoFin系统·螺旋监控】(非知微本人)\n"
|
||||
f"agent 螺旋嫌疑\n"
|
||||
f"profile: {profile}\n"
|
||||
f"session: {sid}\n"
|
||||
f"已运行: {age_sec/60:.0f} 分钟\n"
|
||||
|
||||
@@ -206,7 +206,7 @@ def main():
|
||||
pass
|
||||
|
||||
if actions or problems:
|
||||
msg = "🛡️ 部署守卫\n"
|
||||
msg = "📟【MoFin系统·部署守卫】(非知微本人)\n"
|
||||
for a in actions:
|
||||
msg += f"✅ {a}\n"
|
||||
for p in problems:
|
||||
|
||||
@@ -244,7 +244,7 @@ def main():
|
||||
reports.append(f'{icon} [{module}] {action.get("action")}: {detail[:80]}')
|
||||
|
||||
if reports:
|
||||
xmpp_report(['🔧 自检系统自动修复报备:', f'发现 {len(failures)} 个功能异常,已直接处理:'] + reports +
|
||||
xmpp_report(['📟【MoFin系统·L3自愈】(非知微本人)自动修复报备:', f'发现 {len(failures)} 个功能异常,已直接处理:'] + reports +
|
||||
['', '详情: gateway/logs/repair_log.jsonl'])
|
||||
|
||||
|
||||
|
||||
@@ -300,7 +300,7 @@ def main():
|
||||
# 推 XMPP
|
||||
try:
|
||||
import urllib.request
|
||||
lines = [f"🧹 系统卫生审计发现 {len(all_issues)} 个问题:"]
|
||||
lines = [f"📟【MoFin系统·卫生审计】(非知微本人)发现 {len(all_issues)} 个问题:"]
|
||||
for i in all_issues[:8]:
|
||||
lines.append(f"• [{i['type']}] {i.get('file') or i.get('job') or i.get('table') or i.get('pid')}: {i.get('action','')[:60]}")
|
||||
if len(all_issues) > 8:
|
||||
|
||||
Reference in New Issue
Block a user