{% macro status_pill(s) -%} {% if s is none %}ERR{% elif s < 300 %}{{ s }}{% elif s < 400 %}{{ s }}{% else %}{{ s }}{% endif %} {%- endmacro %} {% macro run_pill(s) -%} {{ s }} {%- endmacro %} {% macro traffic_table(rows) -%}
{% for t in rows %} {% else %}{% endfor %}
#TimeDirPeer / clientRequestStatusms
{{ t.id }} {{ t.ts[11:19] }} {{ '→' if t.direction == 'outbound' else '←' }} {{ t.direction }} {{ (t.peer or '')[:40] }} {{ t.method }} {{ t.url[:90] }}{% if t.note %}
{{ t.note[:140] }}
{% endif %}
{{ status_pill(t.status) }} {{ t.duration_ms or '' }}
No traffic yet.
{%- endmacro %}