- 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
10 lines
420 B
XML
10 lines
420 B
XML
{% set avg = j2_avg_ttft(request) %}
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {"css": "card", "padding": "16px", "borderRadius": "12px", "width": "100%"},
|
|
"subwidgets": [
|
|
{"widgettype": "Text", "options": {"text": "平均 TTFT", "fontSize": "12px", "color": "var(--sage-text-secondary)"}},
|
|
{"widgettype": "Title2", "options": {"text": "{{avg}}ms", "fontWeight": "700", "marginTop": "4px"}}
|
|
]
|
|
}
|