feat(dashboard): optimize dashboard layout and add new charts
This commit is contained in:
@@ -147,3 +147,11 @@ class ProxyService:
|
||||
if isinstance(dt, str):
|
||||
return dt
|
||||
return dt.isoformat()
|
||||
|
||||
async def get_latency_distribution(self) -> dict:
|
||||
async with get_db() as db:
|
||||
return await self.proxy_repo.get_latency_distribution(db)
|
||||
|
||||
async def get_score_distribution(self) -> dict:
|
||||
async with get_db() as db:
|
||||
return await self.proxy_repo.get_score_distribution(db)
|
||||
|
||||
Reference in New Issue
Block a user