feat(ops): 新增 account_temp_unscheduled_count 告警指标

临时摘除(temp-unschedulable)的账号被 account_error_count 指标显式排除
(acc.HasError && TempUnschedulableUntil == nil),且 SetTempUnschedulable 不
改账号 Status,导致代理/凭据故障触发的自动摘除无法被现有告警覆盖。

新增 account_temp_unscheduled_count 指标,统计当前处于临时不可调度窗口
(TempUnschedulableUntil 未过期) 的账号数,打通对自动摘除的定向告警:
- evaluator computeRuleMetric 新增分支 + handler 允许列表;
- 前端联合类型、告警规则下拉项与 en/zh 文案同步。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
DaydreamCoding
2026-06-07 22:31:45 +08:00
co-authored by Claude Opus 4.8
parent 217f85999c
commit f20e6bf769
7 changed files with 68 additions and 0 deletions
+1
View File
@@ -685,6 +685,7 @@ export type MetricType =
| 'account_rate_limited_count'
| 'account_error_count'
| 'account_error_ratio'
| 'account_temp_unscheduled_count'
| 'overload_account_count'
export type Operator = '>' | '>=' | '<' | '<=' | '==' | '!='