feat: Add model performance metrics to dashboard

Add a shared `performance-metrics` feature module for perf metric APIs, DTOs, and formatting, then surface global 24h model performance on the dashboard with cards and a top-model table.

Reuse the shared metrics module from pricing model details, remove duplicated perf API/formatting code from pricing, and add localized labels for the new dashboard performance UI.
This commit is contained in:
t0ng7u
2026-05-08 01:06:44 +08:00
parent a7475a1e67
commit c19d5aa663
19 changed files with 471 additions and 113 deletions
+4
View File
@@ -2383,6 +2383,7 @@
"More templates...": "ほかのテンプレート…",
"More...": "その他...",
"Most-used models in the selected period and category": "選択した期間とカテゴリで最も使われているモデル",
"Monitored relay requests": "監視対象のリレーリクエスト",
"Move": "移動",
"Move a request header": "リクエストヘッダーを移動",
"Move affiliate rewards to your main balance": "アフィリエイト報酬をメイン残高に移動する",
@@ -2555,6 +2556,7 @@
"No payment methods configured": "決済方法が設定されていません",
"No payment methods configured. Click \"Add method\" or use templates to get started.": "支払い方法が設定されていません。「メソッドを追加」をクリックするか、テンプレートを使用して開始してください。",
"No payment methods match your search": "検索に一致する支払い方法がありません",
"No performance data available": "利用可能なパフォーマンスデータはありません",
"No plans available": "利用可能なプランがありません",
"No preference": "設定なし",
"No prefill groups yet": "まだ事前入力グループはありません",
@@ -2849,6 +2851,7 @@
"Percentage:": "パーセンテージ:",
"Performance": "パフォーマンス",
"Performance data is not yet available for this model.": "このモデルのパフォーマンスデータはまだ利用できません。",
"Performance metrics for the last 24 hours": "直近24時間のパフォーマンス指標",
"Performance metrics shown here are simulated for preview purposes and will be replaced with live observability data once the backend integration is complete.": "ここに表示されているパフォーマンス指標はプレビュー用のシミュレーションデータです。バックエンド連携の完了後、実データに置き換えられます。",
"Performance Monitor": "パフォーマンス監視",
"Performance Settings": "パフォーマンス設定",
@@ -4330,6 +4333,7 @@
"Weekly token usage by model since launch": "ローンチ以降のモデル別週次トークン使用量",
"Weekly Window": "週間ウィンドウ",
"Weight": "ウェイト",
"Weighted by request count": "リクエスト数で加重",
"Welcome back!": "おかえりなさい!",
"Welcome to our New API...": "New API へようこそ...",
"Well-Known URL": "よく知られたURL",