{{ t.text('magpie.overview.gateway') }}
{{ card.gateway.name }}{% if card.get('version') %} · {{ card.version }}{% endif %}
{{ metric(t.text('magpie.overview.calls'), integer(card.usage.get('calls'))) }}
{{ metric(t.text('magpie.overview.tokens'), count(totals_tokens(card.usage))) }}
{{ metric(t.text('magpie.overview.cost'), estimate(card.usage.get('cost'), 2)) }}
{{ metric(t.text('magpie.overview.active'), integer(card.live.concurrency.requests), t.text('magpie.overview.waiting', {'count': integer(card.live.concurrency.waiting)}) if card.live.concurrency.waiting is not none else '') }}
{{ t.text('magpie.overview.routing') }}
{% if 'route-events/snapshot' not in card.errors %}{{ t.text('magpie.live.connected') }}{% endif %}| {{ t.text('magpie.request.source') }} | {{ t.text('magpie.overview.model') }} | {{ t.text('magpie.overview.stage') }} |
|---|---|---|
| {% if loop.first %}{{ client(agent, source_name(agent, card.clients.get(agent, {}).get('name', '')), card.clients.get(agent, {}).get('icon', '')) }}{% endif %} | {% if provider %}{{ provider }}{% if model %}/{{ model }}{% endif %}{% else %}{{ t.text('magpie.overview.unassigned') }}{% endif %} |
{{ route_status(attempt, state if loop.first else 'attempt_failed', t) }} |
| {{ t.text('magpie.live.empty') }} | ||
{{ t.text('magpie.overview.quotas') }}
{{ t.text('magpie.overview.cached') }}
{{ quota.get('name') or quota.provider }} · {{ window.name }}{{ reading }}
{% if measured %}
{% endif %}
{% endfor %}
{% endfor %}
{% if not shown.count %}{% endif %}
{{ t.text('magpie.quota.empty') }}
{% endif %} {% if shown.count %}{{ t.text('magpie.quota.hint') }}
{% endif %} {% endif %}