移除告警规则界面、恢复 Chat 端点并优化列表
CI / test (push) Successful in 25s
Release / release (push) Successful in 26s

This commit is contained in:
2026-07-13 10:08:08 +08:00
parent 94fbe62e4c
commit 2ea5b73de2
17 changed files with 73 additions and 402 deletions
-26
View File
@@ -878,32 +878,6 @@ export interface LogEventPage {
total: number
}
/** 回传事件告警规则;条件间 AND,空条件视为任意 */
export interface AlertRule {
id: number
name: string
enabled: boolean
/** 0=全部租户 */
ociConfigId: number
/** 逗号分隔事件短名(如 TerminateInstance),空=全部 */
eventTypes: string
/** 逗号分隔 IP/CIDR,空=任意 */
sourceIps: string
/** in:命中列表告警;notin:不在列表才告警(白名单) */
sourceIpMode: 'in' | 'notin'
/** 资源名子串,空=任意 */
resourceMatch: string
/** 触发阈值,默认 1(即时) */
threshold: number
/** 聚合窗口分钟,threshold>1 时必填 */
windowMinutes: number
createdAt: string
updatedAt: string
}
/** 创建/更新告警规则请求体 */
export type AlertRuleBody = Omit<AlertRule, 'id' | 'createdAt' | 'updatedAt'>
/** 每租户回传回调地址;path 需以面板公网域名拼接完整 URL */
export interface LogWebhookInfo {
path: string