feat: show dual-node account test status
This commit is contained in:
@@ -69,7 +69,7 @@ refresh。组件失败时服务端保留对应 last-good 数据,并在 `compon
|
||||
|
||||
Workspace 当前提供以下有界 projection:
|
||||
|
||||
- `accounts`:账号摘要、quota window、当日用量和 provider/group/status 字段;如能按当前 server6 upstream key-group binding 关联,还包含 `account_rate_multiplier` 原始有效倍率和 `account_rate_multiplier_cny` 展示倍率。
|
||||
- `accounts`:按完整 `(account_id, account_name)` 对齐 server6/server4 fresh binding 和 scheduled-test plan 的账号摘要、quota window 与当日用量;`active_state`、`schedulable_state` 是 `yes` / `partial` / `no`,`last_test_state` 另可为 `NA`。每个节点先选择自身最新的有效测试结果,聚合 `last_test_time` / `last_test_model` 取两者中较早的一次;详情保留脱敏 `node_status` 用于定位 partial。当前 server6 upstream key-group binding 精确关联时仍包含 `account_rate_multiplier` 原始有效倍率和 `account_rate_multiplier_cny` 展示倍率。
|
||||
- `status`:channel monitor 摘要。
|
||||
- `sources`:Pricing Monitor 已有的脱敏 source 余额与健康状态。
|
||||
- `traffic.requests`:仅 server6 的最新有界请求样本;每行带对应 account 的当前 `account_rate_multiplier` / `account_rate_multiplier_cny`,无法稳定关联时为 `null`。
|
||||
@@ -131,7 +131,7 @@ account、model、phase/type/owner,不显示聚合次数。Key usage 和对应
|
||||
`--legacy-direct` 仅用于迁移对账和故障诊断。它恢复旧拓扑:
|
||||
|
||||
- Accounts helper `/api/tui/accounts`
|
||||
- `sub2api-status` `/api/status`
|
||||
- `sub2api-status` `/api/status`(历史接口,已归档下线;仅作为旧客户端参数的兼容说明)
|
||||
- Pricing Monitor `view=accounts`
|
||||
- Sub2API admin usage/key/error API
|
||||
|
||||
@@ -202,12 +202,15 @@ uv lock --check
|
||||
## Maintenance Notes
|
||||
|
||||
Workspace adapter 只负责把 server projection 映射为现有渲染模型,不得在普通刷新中
|
||||
重新引入 legacy HTTP 请求。新增 projection 字段时应同时验证:字段 allowlist、字符串 ID、
|
||||
重新引入 legacy HTTP 请求。当前 `sub2api-status` 与旧 Accounts helper 已归档下线,Pricing Monitor
|
||||
受管模型中的 Workspace 输入已成对清空。由于含用户未提交 Rule Control 改动的 companion 不在本次部署范围,
|
||||
远端 collector 暂保留旧环境并会显示 stale / partial;下一次安全的 selected deployment 或重启后,默认
|
||||
`shusub2` Workspace 入口将返回 `503 workspace data unavailable`。新增替代 projection 字段时应同时验证:字段 allowlist、字符串 ID、
|
||||
finite number、payload 上限、单请求 cache、错误聚合次数和 legacy fallback。
|
||||
|
||||
`cliproxy-codex-quota` 与 `sub2api-status` 当前仍可作为 Aggregation Hub 的过渡采集输入和
|
||||
双读对照,但不再是默认 TUI 客户端直连依赖。移除这些过渡输入前,必须先完成 server2
|
||||
聚合字段对账和 AstrBot `view=alerts` 连续性验证。
|
||||
`cliproxy-codex-quota` 可继续作为 Aggregation Hub 的过渡采集输入;`sub2api-status` 已归档下线,
|
||||
不得再作为采集输入或双读对照。恢复 Workspace 前,必须先完成新的服务端 projection、server2 聚合字段
|
||||
对账和 AstrBot `view=alerts` 连续性验证。
|
||||
|
||||
## Tests And Release
|
||||
|
||||
|
||||
Reference in New Issue
Block a user