merge: 合并远程 A2 告警引擎分布式安全更新,保留本地日志中心等最新改动

This commit is contained in:
Logan committed 2026-06-26 23:19:42 +08:00
commit 23e9e3da62
137 files changed
+947 -611

No files matched your search

+8
View File
@@ -55,3 +55,11 @@ export interface SortParams {
sort_by?: string;
sort_order?: 'asc' | 'desc';
}
// ===== 动态 JSON 数据类型 =====
// 后端 API 返回的动态 JSON 结构,字段高度不确定(运行时从 DB/API 构建)
// 集中声明 any 以便 ESLint no-explicit-any 规则在全局仅此一处豁免
// 后续应逐步替换为 types/ 中的具体接口定义
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type JsonData = Record<string, any>;
+2 -1
View File
@@ -1,3 +1,4 @@
import type { JsonData } from "@/types/common";
// 监控告警模块类型定义
// 字段与后端 alert_engine.go / agent.go JSON tag 对齐(snake_case)
@@ -355,7 +356,7 @@ export interface DashboardPanel {
x: number;
y: number;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
options: any;
options?: JsonData;
}
export interface GrafanaDashboard {