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

Overview

{% set m = metrics %}
{{ m.get("total_calls", "-") }}
Total Calls
{{ "%.1f"|format(m.get("block_rate_pct", 0)) }}%
Block Rate
{{ "%.0f"|format(m.get("p95_latency_ms", 0)) }}ms
p95 Latency
${{ "%.4f"|format(m.get("total_cost_usd", 0)) }}
Total Cost
{{ m.get("pending_hitl", 0) }}
Pending Approvals
{% if m.get("circuit_open") %}OPEN{% else %}OK{% endif %}
Circuit Breaker

Recent Traces

{% if recent_traces %}
{% for t in recent_traces %} {% endfor %}
TimeTenantInputVerdictLatency
{{ t.get("created_at","") }} {{ t.get("tenant_id","") }} {{ t.get("input_text","")[:80] }} {% if t.get("blocked") %} BLOCKED {% else %} OK {% endif %} {{ "%.0f"|format(t.get("total_latency_ms",0)) }}ms
{% else %}
No traces yet.
{% endif %}
View all traces ->
{% endblock %}