{# Audit cost-summary cards — vendored from governor_web/templates/dashboard/_cost_summary.html @ 19455c57c5a9. Same Total / Build / Consumption / fourth-card layout. Audit's fourth card is "Flagged Spend" (cost touched by detection rules) instead of cloud's Storage Monthly. Per-rule findings live on /opportunities — there's no Active Issues pane on the dashboard. #}
{# Total Spend — info icon removed; the label is self-evident. #}

Total Spend

{{ totals.total_cost_usd | format_usd }}

across {{ "{:,}".format(totals.total_jobs) }} job{{ "s" if totals.total_jobs != 1 else "" }}

{# Build Spend — materialising jobs such as CTAS / MERGE / INSERT / UPDATE / DELETE #}

Build Spend

{{ totals.build_spend | format_usd }}

{% if totals.total_cost_usd and totals.build_spend %}

{{ "%.0f" | format(totals.build_spend / totals.total_cost_usd * 100) }}% of scanned spend

{% else %}

materialising writes

{% endif %}
{# Consumption Spend — read-only jobs such as SELECTs from BI tools or ad-hoc analysts #}

Consumption Spend

{{ totals.consumption_spend | format_usd }}

{% if totals.total_cost_usd and totals.consumption_spend %}

{{ "%.0f" | format(totals.consumption_spend / totals.total_cost_usd * 100) }}% of scanned spend

{% else %}

read-only consumers

{% endif %}
{# Flagged jobs — count of cached jobs with ≥1 active opportunity. Replaces the previous "Flagged Spend" $-card because the hero card above already shows that dollar value as "Optimisable spend" — the count is the non-redundant signal that completes the picture ("$X across N jobs"). #}

Flagged Jobs

{{ "{:,}".format(pagination.total_items if pagination else 0) }}

{% if totals.total_jobs and pagination and pagination.total_items %}

{{ "%.0f" | format(pagination.total_items / totals.total_jobs * 100) }}% of scanned jobs

{% else %}

jobs with at least one finding

{% endif %}