eccd6e8f04
feat: add models/ with 3 data mart table definitions (dm_model_call_fact, dm_model_perf_daily, dm_provider_cost_daily)
...
- dm_model_call_fact: LLM调用明细事实表 (23 fields)
- dm_model_perf_daily: 模型性能日汇总表 (25 fields)
- dm_provider_cost_daily: 供应商成本日汇总表 (11 fields)
- build.sh: generate DDL from models/*.json via json2ddl
- .gitignore: exclude generated mysql.ddl.sql
2026-07-20 12:58:17 +08:00
4f23e07bcd
fix: cron dspy移除import + load_path.py添加cron权限(any) + stat_total_users
...
- cron/*.dspy: 移除import,改为调用init.py注册的cron_etl_*函数
- init.py: 新增cron_etl_sync/aggregate/provider_cost函数(含IP白名单校验)
- load_path.py: 添加3个cron dspy路径为any角色,补充stat_total_users.ui
- dspy内权限: request['client_ip']不在127.0.0.1则拒绝
2026-07-20 10:55:05 +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
64750630e1
docs: updated API list with dashboard_for_sage replacements
2026-07-17 18:11:49 +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
92572bcf6b
docs: correct org hierarchy from supplychain, not organization.parentid
2026-07-17 18:06:14 +08:00
565c44d130
docs: README with data sources, frequency, business logic, API docs
2026-07-17 17:23:58 +08:00
32e9dc5cb8
Merge branch 'main' of git.opencomputing.cn:yumoqing/sage_datamark
2026-07-17 17:20:25 +08:00
8aafb31ef4
rename: data_mart → sage_datamark
2026-07-17 17:20:13 +08:00
7b85f024ee
Initial commit
2026-07-17 17:20:04 +08:00
4d24094048
feat: data_mart module — model perf monitoring + provider ROI dashboard
2026-07-17 16:56:52 +08:00