{% load humanize docca_tags %} Usage — {{ site_name }}

Usage

Request counts per endpoint for the selected key{% if tier %}, against your {{ tier.name }} tier limits{% endif %} · {{ today|date:"F j, Y" }}

{# Key selector — only shown when the user has more than one key #} {% if user_keys|length > 1 %} {% endif %}
{% for row in rows %} {% with ep=row.endpoint tel=row.limit %} {# Today column #} {# Month column #} {% endwith %} {% endfor %}
Endpoint Today This month
{{ ep.method }} {{ ep.path|clean_path }} {% if tel and tel.period == 'day' %}
{% if tel.limit > 0 %} {% widthratio row.day_count tel.limit 100 as bar_pct %}
{% endif %}
{{ row.day_count|intcomma }} / {{ tel.limit|intcomma }}
{% elif row.day_count > 0 %} {{ row.day_count|intcomma }} {% else %} {% endif %}
{% if tel and tel.period == 'month' %}
{% if tel.limit > 0 %} {% widthratio row.month_count tel.limit 100 as bar_pct %}
{% endif %}
{{ row.month_count|intcomma }} / {{ tel.limit|intcomma }}
{% elif row.month_count > 0 %} {{ row.month_count|intcomma }} {% else %} {% endif %}