{% extends "base.html" %} {% block content %}
Quota

Usage

{% if metrics.get("usage_quota_enabled") %}Enforced{% else %}Tracking{% endif %}
{% if usage.get("error") %}
Error

{{ usage.get("error") }}

{% else %} {% set remaining = usage.get("remaining", {}) %} {% set limits = usage.get("limits", {}) %}
Calls used {{ usage.get("calls", 0) }} remaining {{ remaining.get("calls", "unlimited") }}
Tool checks {{ usage.get("tool_validations", 0) }} remaining {{ remaining.get("tool_validations", "unlimited") }}
Tracked cost ${{ "%.4f"|format(usage.get("cost_usd", 0)) }} remaining {{ remaining.get("cost_usd", "unlimited") }}
Quota window {{ "%.0f"|format(limits.get("window_s", 0)) }}s tenant {{ usage.get("tenant_id", tenant_id) }}
Usage Event Sinks {{ metrics.get("usage_event_sinks", 0) }} billing hooks configured
Quota enforcement {% if metrics.get("usage_quota_enabled") %}ON{% else %}OFF{% endif %} API-side hard limit
{% endif %}
{% endblock %}