{ "widgettype": "VBox", "id": "datamart_root", "options": {"width": "100%", "height": "100%", "bgcolor": "var(--sage-bg-primary, transparent)"}, "subwidgets": [ { "widgettype": "VScrollPanel", "options": {"css": "filler"}, "subwidgets": [ { "widgettype": "HBox", "options": {"width": "100%", "alignItems": "center", "marginBottom": "12px"}, "subwidgets": [ {"widgettype": "Title2", "options": {"fontWeight": "700", "otext": "模型性能监控", "i18n": true}}, {"widgettype": "Filler"}, { "widgettype": "Button", "options": {"label": "刷新", "fontSize": "12px"}, "binds": [{"wid": "self", "event": "click", "actiontype": "method", "target": "-@Cols", "method": "render_urldata", "params": {}}] } ] }, { "widgettype": "HBox", "options": {"width": "100%", "gap": "16px", "marginBottom": "16px"}, "subwidgets": [ {"widgettype": "RefreshWidget", "id": "stat_avg_ttft", "options": {"period_seconds": 60, "url": "{{entire_url('stat_avg_ttft.ui')}}", "width": "25%"}}, {"widgettype": "RefreshWidget", "id": "stat_success_rate", "options": {"period_seconds": 60, "url": "{{entire_url('stat_success_rate.ui')}}", "width": "25%"}}, {"widgettype": "RefreshWidget", "id": "stat_total_calls", "options": {"period_seconds": 60, "url": "{{entire_url('stat_total_calls.ui')}}", "width": "25%"}}, {"widgettype": "RefreshWidget", "id": "stat_fail_calls", "options": {"period_seconds": 60, "url": "{{entire_url('stat_fail_calls.ui')}}", "width": "25%"}} ] }, { "widgettype": "Cols", "options": { "css": "card", "col_cwidth": 28, "title": "模型性能排行", "data_url": "{{entire_url('api/model_perf.dspy')}}", "data_params": {}, "record_view": { "widgettype": "HBox", "options": {"cheight": 4, "width": "100%"}, "subwidgets": [ {"widgettype": "Text", "options": {"text": "${model}", "width": "30%"}}, {"widgettype": "Text", "options": {"text": "${avg_ttft_ms}ms", "width": "15%"}}, {"widgettype": "Text", "options": {"text": "${avg_ttot_ms}ms", "width": "15%"}}, {"widgettype": "Text", "options": {"text": "${success_rate}%", "width": "15%"}}, {"widgettype": "Text", "options": {"text": "${total_calls}", "width": "15%"}}, {"widgettype": "Text", "options": {"text": "¥${total_amount}", "width": "10%"}} ] } } } ] } ] }