{% extends "base.html" %} {% block title %}Hosts — Roundtable{% endblock %} {% block content %}
{% if hosts %}| Name | Address | Probe | Ping | Latency | DNS | 24h | 7d | 30d | |
|---|---|---|---|---|---|---|---|---|---|
| {{ host.name }} | {{ host.address }} | {{ host.probe_type.value | upper }}{% if host.probe_type.value == 'tcp' %}:{{ host.probe_port }}{% endif %} | {% if not host.ping_enabled %} off {% elif ping is none %} — {% elif ping.status.value == 'up' %} {% else %} {% endif %} | {% if ping and ping.response_time_ms is not none %} {% if ping.response_time_ms < 10 %} {{ ping.response_time_ms | round(1) }} ms {% elif ping.response_time_ms < 100 %} {{ ping.response_time_ms | round(1) }} ms {% else %} {{ ping.response_time_ms | round(1) }} ms {% endif %} {% else %} — {% endif %} | {% if not host.dns_enabled %} off {% elif dns is none %} — {% elif dns.status.value == 'resolved' %} {% else %} {% endif %} | {% for window in ["24h", "7d", "30d"] %} {% set pct = ut.get(window) %}{% if not host.ping_enabled %} — {% elif pct is none %} — {% elif pct >= 99.9 %} {{ "%.1f"|format(pct) }}% {% elif pct >= 99 %} {{ "%.1f"|format(pct) }}% {% elif pct >= 95 %} {{ "%.1f"|format(pct) }}% {% else %} {{ "%.1f"|format(pct) }}% {% endif %} | {% endfor %}Edit |
No hosts yet. Summon one to the table.