預算線與節流狀態
| 週期 | 建議路徑 | 已花費 | 預算 | 預警線 | 使用率 | 狀態 | 動作 |
|---|---|---|---|---|---|---|---|
| {{ r.period }} | {{ obs_label.provider(r.provider) }} | ${{ "%.2f"|format(r.spent) }} | {{ "%.0f"|format(r.ratio * 100) }}% | {% if r.throttled %}已節流{% elif r.ratio >= 0.8 %}接近上限{% else %}正常{% endif %} | |||
| 尚未建立預算線。 | |||||||
{% extends "ewoooc_base.html" %} {% block title %}AI 成本治理艙{% endblock %} {% block ewooo_content %} {% import "admin/_observability_labels.html" as obs_label %} {% set total_budget = namespace(value=0) %}{% set total_spent = namespace(value=0) %}{% set warn_count = namespace(value=0) %}{% set throttled_count = namespace(value=0) %} {% for r in rows %}{% set total_budget.value = total_budget.value + (r.budget_usd or 0) %}{% set total_spent.value = total_spent.value + (r.spent or 0) %}{% if r.ratio >= 0.8 %}{% set warn_count.value = warn_count.value + 1 %}{% endif %}{% if r.throttled %}{% set throttled_count.value = throttled_count.value + 1 %}{% endif %}{% endfor %} {% set total_ratio = (total_spent.value / total_budget.value * 100) if total_budget.value > 0 else 0 %}
控制 AI 花費與節流狀態,把預算留給能推動業績的任務。
| 週期 | 建議路徑 | 已花費 | 預算 | 預警線 | 使用率 | 狀態 | 動作 |
|---|---|---|---|---|---|---|---|
| {{ r.period }} | {{ obs_label.provider(r.provider) }} | ${{ "%.2f"|format(r.spent) }} | {{ "%.0f"|format(r.ratio * 100) }}% | {% if r.throttled %}已節流{% elif r.ratio >= 0.8 %}接近上限{% else %}正常{% endif %} | |||
| 尚未建立預算線。 | |||||||
AI 成本治理艙