{# http/widget.html — dashboard widget: HTTP monitor summary #} {% if not monitor_data and up == 0 and down == 0 and pending == 0 %}
No monitors configured. Add monitors →
{% else %}
{% if up %}
{{ up }} up
{% endif %} {% if down %}
{{ down }} down
{% endif %} {% if pending %}
{{ pending }} pending
{% endif %}
{% for item in monitor_data %} {% set latest = item.latest %}
{% if not latest %} {% elif latest.is_up %} {% else %} {% endif %} {{ item.monitor.name }} {% if latest and latest.response_ms is not none %} {{ "%.0f" | format(latest.response_ms) }}ms {% elif latest and not latest.is_up %} {{ latest.status_code or "err" }} {% endif %}
{% endfor %}
{% endif %}