{% extends "django_observatory/base.html" %}{% load observatory %} {% block title %}External APIs{% endblock %}{% block heading %}External services{% endblock %} {% block sub %}Outbound HTTP calls made by the application{% endblock %} {% block tools %}{% include "django_observatory/_range.html" %}All calls{% endblock %} {% block content %}
{% include "django_observatory/_hbars.html" with title="Latency by service" note="P95" bars=by_latency %} {% include "django_observatory/_hbars.html" with title="Failure rate by service" bars=by_errors %}
{% for s in services %} {% empty %}{% endfor %}
ServiceCallsAverageP95MaxErrors
{{ s.service }}{{ s.calls }}{{ s.avg|ms }}{{ s.p95|ms }}{{ s.max|ms }} {% if s.errors >= 5 %}{{ s.errors|floatformat:1 }}%{% else %}{{ s.errors|floatformat:1 }}%{% endif %} calls
No outbound HTTP calls recorded in this time range.
{% if chart %}

{{ selected }}

{% include "django_observatory/_chart.html" with title="Latency" id="c-svc" data=chart %} {% include "django_observatory/_chart.html" with title="Calls by outcome" id="c-out" data=outcomes %}
{% include "django_observatory/_chart.html" with title="Call duration distribution" id="c-sd" data=distribution %}
{% endif %} {% endblock %}