6 Commits

Author SHA1 Message Date
4d8e93dc87 完整修复币种逻辑:
- dm_model_call_fact 增加 amount_cny 字段(CNY折算金额)
- ETL sync_call_fact 同步时计算并写入 amount_cny
- dm_model_perf_daily/dm_provider_cost_daily 唯一键加入 currency(按币种分组)
- ETL 聚合函数按 currency 分组,保留原币种维度
- Dashboard 查询统一使用 amount_cny 进行跨币种比较
- 汇率查询从 accounting 模块获取(修正库名)
- 新增币种分布统计接口和UI展示
2026-07-20 15:44:36 +08:00
8a97ea4a86 refactor: rename sage_datamark → sage_datamart + add ETL cron + stat UIs
- Rename package directory and all references from sage_datamark to sage_datamart
- Add 3 ETL cron dspy files (sync/aggregate/provider_cost) for scheduled data pipelines
- Add 5 stat UI files (total_users/fail_calls/success_rate/avg_ttft/total_calls)
- Register j2_ template functions in init.py for UI rendering
- Move j2_avg_ttft SQL to dashboards.py for DRY
- Clean unused imports (getConfig/DBPools/exception)
- Update git remote to sage_datamart.git
2026-07-20 10:49:15 +08:00
0f3c7f23f4 fix: add import json to model_perf.dspy and provider_roi.dspy 2026-07-17 18:12:56 +08:00
054b0dd8e2 feat: unified dashboard — all dashboard_for_sage metrics from data mart, 6 stat cards, perf+ops 2026-07-17 18:11:19 +08:00
8aafb31ef4 rename: data_mart → sage_datamark 2026-07-17 17:20:13 +08:00
4d24094048 feat: data_mart module — model perf monitoring + provider ROI dashboard 2026-07-17 16:56:52 +08:00