{% if local_model_dashboard %} Execution Summary {% elif selected_lens == 'build' %} Build Usage Statistics {% elif selected_lens == 'consumption' %} Consumption Usage Statistics {% else %} Usage Statistics {% endif %}

{% if local_model_dashboard and local_model_points and local_model_points | length > 0 %} {# Local mode: summary cards computed from the same data as the model table #} {% set model_count = local_model_points | length %} {% set total_bytes = local_model_points | sum(attribute='bytes') %} {% set total_duration_ms = local_model_points | sum(attribute='duration_ms') %}

Models Executed

{{ model_count }}

last dbt run

Data Processed

{{ local_model_points[0].bytes_display if model_count == 1 else (total_bytes | filesizeformat) }}

total bytes billed

Total Execution

{{ "%.1f" | format(total_duration_ms / 1000) }}s

wall clock time

{% elif usage_stats and usage_stats | length > 0 %} {# Cloud mode: historical time-series charts #}

{% if selected_lens == 'build' %}Build Jobs / Day{% elif selected_lens == 'consumption' %}Consumption Jobs / Day{% else %}Runs / Day{% endif %}

Bytes / Day

Slots / Day

{% else %}

{% if selected_lens == 'storage' %} Storage uses the latest synced snapshot, so there is no per-day usage chart. {% else %} No {{ selected_lens_label | default('query') | lower }} usage data available for this period. {% endif %}

{% endif %}