{% for pool in pools %} {% set pool_index = loop.index %}

{{ pool.title }}

{% if recorded_pool == pool.id %}updated{% endif %}
{% if pool.id in usage_refresh %}
{% endif %} {% if pool.usage %}

Source: {{ pool.usage.source }} ({{ pool.usage.mode }}) · {%- if pool.usage.age_s is not none %} read {{ pool.usage.age_s|age }} ago {%- else %} never read {%- endif %} {%- if pool.usage.last_error %} · last read failed: {{ pool.usage.last_error }} {%- endif %} {%- if pool.usage.stale %} stale {%- endif %}

{% endif %} {% if pool.block %}
blocked

Closed until {{ local(pool.block.until) }}: {{ pool.block.reason }}

{% endif %} {% for window in pool.windows %} {% if pool.block or window.blocked %} {% set status = 'blocked' %} {% set status_class = 'approval-badge--danger' %} {% elif window.used is none %} {% set status = 'no data' %} {% set status_class = '' %} {% elif window.expected is not none and window.used > window.expected %} {% set status = 'ahead of pace' %} {% set status_class = 'approval-badge--warn' %} {% else %} {% set status = 'behind pace' %} {% set status_class = 'approval-badge--ok' %} {% endif %}

{{ window.id }}

{{ status }}
{% if window.used is not none %}

{{ '%.1f%%'|format(window.used * 100) }} used {% if window.expected is not none %}expected {{ '%.1f%%'|format(window.expected * 100) }}{% endif %}

{% endif %}

Reset: {% if window.resets_at %} {% elif window.kind == 'fixed' and not window.anchored %}set the reset time{% else %}—{% endif %}

Data age: {{ window.age_s|age }} · figure: {{ window.figure_source }} {% if window.age_s is not none and window.age_s > stale_after_s %} stale {% endif %}

{% if window.used is none or window.note %}

{{ window.note or 'no usage observation recorded' }}

{% endif %}
{% endfor %}
{% endfor %}
{% if usage_refresh %}
{% endif %}
All windows as a table {% for pool in pools %} {% for window in pool.windows %} {% endfor %} {% endfor %}
Limit usage by pool and window
Pool Window Usage Expected Behind Reset Source Age Status
{{ pool.title }} {{ window.id }} {% if window.used is none %}—{% else %}{{ '%.1f%%'|format(window.used * 100) }}{% endif %} {% if window.expected is none %}—{% else %}{{ '%.1f%%'|format(window.expected * 100) }}{% endif %} {% if window.lag is none %}—{% else %}{{ '%.1f%%'|format(window.lag * 100) }}{% endif %} {% if window.resets_at %}{{ local(window.resets_at) }}{% elif window.kind == 'fixed' and not window.anchored %}set the reset time{% else %}—{% endif %} {{ window.source or '—' }}{% if window.estimated %} (estimate){% endif %} {{ window.age_s|age }} {% if pool.block %}Closed until {{ local(pool.block.until) }}: {{ pool.block.reason }}
{% endif %} {% if window.blocked %}Window exhausted. {% endif %} {{ window.note or '' }}