feat: 重构接口日志页面与接口监控看板,支持HTTP方法过滤和实时轮询
This commit is contained in:
@@ -93,6 +93,8 @@ def _client_for(website: Website) -> Sub2ApiWebsiteClient:
|
||||
auth_type=website.auth_type,
|
||||
auth_config=json.loads(website.auth_config_json or "{}"),
|
||||
timeout=float(website.timeout_seconds),
|
||||
target_id=website.id,
|
||||
target_name=website.name,
|
||||
)
|
||||
|
||||
|
||||
@@ -325,6 +327,8 @@ def _backfill_missing_target_groups_from_remote_accounts(
|
||||
auth_type=website.auth_type,
|
||||
auth_config=json.loads(website.auth_config_json or "{}"),
|
||||
timeout=float(website.timeout_seconds),
|
||||
target_id=website.id,
|
||||
target_name=website.name,
|
||||
) as client:
|
||||
accounts = client.list_accounts() or []
|
||||
except Exception as exc:
|
||||
@@ -838,6 +842,8 @@ def reconcile_upstream_keys_full(db: Session, upstream_id: int) -> bool:
|
||||
auth_config=auth_config,
|
||||
timeout=float(upstream.timeout_seconds),
|
||||
on_auth_config_update=lambda updated: _persist_upstream_auth_config(upstream, updated),
|
||||
target_id=upstream.id,
|
||||
target_name=upstream.name,
|
||||
) as client:
|
||||
client.login()
|
||||
# 获取远端 Key 列表(支持自定义 managed_prefix)
|
||||
|
||||
Reference in New Issue
Block a user