{% from "partials/_macros.html" import card_header %} {% set total = (row_counts | sum(attribute='rows')) if row_counts else 0 %} {% set maxr = (row_counts | map(attribute='rows') | max) if row_counts else 0 %}

rows per collector (since latest run)

{% if row_counts %} {{ "{:,}".format(total) }} total {% endif %}
{% if row_counts %}
{% for r in row_counts %} {% set empty = r.rows == 0 %} {# change vs previous run #} {# proportional bar; non-zero gets a minimum visible width #} {% endfor %}
{{ r.name }} {{ r.rows }} {% if empty %} empty {% elif r.is_new %} new {% elif r.delta is not none and r.delta > 0 %} ▲ +{{ r.delta }} {% elif r.delta is not none and r.delta < 0 %} ▼ −{{ -r.delta }} {% elif r.delta == 0 %} {% endif %} {% if not empty %} {% set pct = (r.rows / maxr * 100) if maxr > 0 else 0 %}
{% endif %}
{% else %}
no run yet
{% endif %}