{% extends "gateway/base.html" %} {% load humanize gateway_format %} {% block title %}Overview ·{% endblock %} {% block heading %}

Overview

Compared with the period before.

{% endblock %} {% block actions %}
{% if overview %}{% endif %} {% if can_add_project %}Add project{% endif %}
{% endblock %} {% block content %} {% if overview %}
{% for tile in overview.tiles %}
{{ tile.label }}
{% if tile.value is None %}–{% elif tile.kind == "count" %}{{ tile.value|compact }}{% elif tile.kind == "percent" %}{{ tile.value }}%{% else %}{{ tile.value|duration }}{% endif %}
{% if tile.change is not None %}

{% if tile.change > 0 %}↑ {{ tile.change }}%{% elif tile.change < 0 %}↓ {{ tile.change|cut:"-" }}%{% else %}No change{% endif %} vs the period before

{% else %}

{% firstof tile.note "No earlier period yet" %}

{% endif %}
{% endfor %}
{% if overview.has_calls %}
{% include "gateway/includes/section.html" with title="Tokens" text="Busiest projects on the right." id="tokens-heading" %}
    {% for bar in overview.chart %}
  1. {% if overview.hourly %}{{ bar.key|date:"H:i" }}{% else %}{{ bar.key|date:"j M" }}{% endif %}: {{ bar.total|intcomma }} tokens
  2. {% endfor %}
    {% for item in overview.legend %}
  1. {% if item.url %}{{ item.name }}{% else %}{{ item.name }}{% endif %} {{ item.tokens|compact }} {{ item.share }}%
  2. {% endfor %}
{% include "gateway/includes/section.html" with title="Closest to a limit" text="Today and this month." id="closest-heading" %} {% if overview.closest %}
    {% for item in overview.closest %}
  • {{ item.project.name }}{% if item.period == "day" %}{% include "gateway/includes/limit_meter.html" with limit=item label="of today's limit" %}{% else %}{% include "gateway/includes/limit_meter.html" with limit=item label="of this month's limit" %}{% endif %}
  • {% endfor %}
{% else %}

No limits in use yet.

{% endif %}
{% include "gateway/includes/section.html" with title="Recent failures" text="Refused or failed calls." id="failures-heading" %} {% if overview.failures %}
    {% for call in overview.failures %}
  • {% if call.status_code >= 500 %}{{ call.status_code }}{% else %}{{ call.status_code }}{% endif %} {{ call.project.name }} · {{ call.model }} · {{ call.provider }} {{ call.started_at|naturaltime }}
  • {% endfor %}

All usage in this period →

{% else %}

No failures in this period.

{% endif %}
{% include "gateway/includes/section.html" with title="Providers" text="Calls and failures per provider." id="providers-health-heading" %}
{% for row in overview.providers %}{% endfor %}
Provider Calls Failed
{{ row.provider }}{{ row.calls|intcomma }}{{ row.failed_percent }}%
{% else %}

No calls in this period

Try a longer range, or set up a project.

{% if can_see_projects %}Go to projects{% endif %}
{% endif %}
{% elif can_see_projects %}

Go to projects →

{% else %}

Nothing to show

You don’t have access to anything yet. Ask an admin to give you access.

{% endif %} {% endblock %}