{% extends "django_prometric/base.html" %}
{% load i18n prometric_extras %}
{% block title %}{% translate "Snapshot" %} #{{ snapshot.pk }}{% endblock %}
{% block page_title %}{% translate "Snapshot" %} #{{ snapshot.pk }}{% endblock %}
{% block page_meta %}
{% for slug in snapshot.provider_slugs %}{{ slug }} {% endfor %}
{% if snapshot.window_start %}
{{ snapshot.window_start|date:"M j, Y" }} – {{ snapshot.window_end|date:"M j, Y" }} ·
{% endif %}
{% blocktranslate with taken=snapshot.taken_at|date:"M j, Y H:i" %}taken {{ taken }}{% endblocktranslate %}
{% endblock %}
{% block page_actions %}
{% endblock %}
{% block content %}
mode: {{ snapshot.filters.MODE|default:"all" }}
{% if snapshot.filters.EXCLUDE_ADMIN %}{% translate "admin excluded" %}{% endif %}
{% if snapshot.filters.INCLUDE %}include: {{ snapshot.filters.INCLUDE|join:", " }}{% endif %}
{% if snapshot.filters.EXCLUDE %}exclude: {{ snapshot.filters.EXCLUDE|join:", " }}{% endif %}
{% if filters_changed %}
{% translate "The route filters changed between the runs of this series, so route-level numbers may not be directly comparable." %}
{% endif %}
{% include "django_prometric/_comparison.html" with columns=series current=snapshot %}
{% for slug, report in snapshot.reports.items %}
{% if report.clamped %}
{% blocktranslate %}The {{ slug }} window was shortened to this source's maximum reach when the snapshot was taken.{% endblocktranslate %}
{% endif %}
{% if report.top_routes %}
{% translate "Top routes" %}
{{ slug }}
| {% translate "Route" %} |
{% translate "Requests" %} |
{% translate "Bandwidth" %} |
{% for row in report.top_routes %}
| {{ row.route|route_html }} |
{{ row.requests|num }} |
{{ row.bandwidth_bytes|size }} |
{% endfor %}
{% endif %}
{% if report.slowest_routes %}
{% translate "Slowest routes" %}
{{ slug }}
| {% translate "Transaction" %} |
{% translate "Requests" %} |
p50 |
p95 |
p99 |
{% translate "Failure rate" %} |
{% for row in report.slowest_routes %}
| {{ row.transaction }} |
{{ row.requests|num }} |
{{ row.p50_ms|ms }} |
{{ row.p95_ms|ms }} |
{{ row.p99_ms|ms }} |
{{ row.failure_rate|pct }} |
{% endfor %}
{% endif %}
{% if report.countries %}
{% translate "Countries" %}
{{ slug }}
{% for item in report.countries %}
| {{ item.label|flag }} {{ item.label }} |
{{ item.value|num }} |
{% endfor %}
{% endif %}
{% if report.statuses %}
{% translate "Status codes" %}
{{ slug }}
{% for item in report.statuses %}
| {{ item.label }} |
{{ item.value|num }} |
{% endfor %}
{% endif %}
{% endfor %}
{% endblock %}