mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 10:27:46 +08:00
feat: add adaptive pool metrics and self-check
This commit is contained in:
@@ -12,6 +12,7 @@ describe('poolAdvancedDialog', () => {
|
||||
expect(buildPoolHealthToggleCards().map(item => item.key)).toEqual([
|
||||
'health_policy_enabled',
|
||||
'probing_enabled',
|
||||
'account_self_check_enabled',
|
||||
'auto_remove_banned_keys',
|
||||
'skip_exhausted_accounts',
|
||||
])
|
||||
@@ -27,7 +28,12 @@ describe('poolAdvancedDialog', () => {
|
||||
{
|
||||
key: 'probing_enabled',
|
||||
label: '主动探测',
|
||||
description: '按固定间隔刷新 Key 的状态与额度,减少号池状态滞后。',
|
||||
description: '自动维护热池,缺口时异步补位。',
|
||||
},
|
||||
{
|
||||
key: 'account_self_check_enabled',
|
||||
label: '账号自检',
|
||||
description: '定时确认封号状态,默认刷新额度,也可使用自定义请求。',
|
||||
},
|
||||
{
|
||||
key: 'auto_remove_banned_keys',
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
export type PoolHealthToggleKey =
|
||||
| 'health_policy_enabled'
|
||||
| 'probing_enabled'
|
||||
| 'account_self_check_enabled'
|
||||
| 'auto_remove_banned_keys'
|
||||
| 'skip_exhausted_accounts'
|
||||
|
||||
@@ -34,7 +35,12 @@ export function buildPoolHealthToggleCards(): PoolHealthToggleCard[] {
|
||||
{
|
||||
key: 'probing_enabled',
|
||||
label: '主动探测',
|
||||
description: '按固定间隔刷新 Key 的状态与额度,减少号池状态滞后。',
|
||||
description: '自动维护热池,缺口时异步补位。',
|
||||
},
|
||||
{
|
||||
key: 'account_self_check_enabled',
|
||||
label: '账号自检',
|
||||
description: '定时确认封号状态,默认刷新额度,也可使用自定义请求。',
|
||||
},
|
||||
{
|
||||
key: 'auto_remove_banned_keys',
|
||||
|
||||
Reference in New Issue
Block a user