{% extends "base.html" %} {% from "_macros.html" import crumbs, page_header, stat_tile %} {# One monitor: its state and for how long, latency and uptime against Settings → Thresholds (latency against its own normal once it has one, with its anomalies), its response time over the last day, its last checks, the failures behind them and how it is set up. #} {% block title %}{{ monitor.name }} — Monitors — Steward{% endblock %} {% block breadcrumb %}{{ crumbs([("Monitors", "/monitors/"), (monitor.name, "")]) }}{% endblock %} {% block content %} {% set can_edit = session.user_role in ['operator', 'admin'] %} {% call page_header(monitor.name, (monitor.type|monitor_type) ~ " · " ~ monitor.target) %} {% if can_edit %} Edit
{% endif %} {% endcall %}Average per {{ ((24 * 60) // 96) }} minutes, your local time. Red bars mark failed checks.
Newest on the right; hover one for its result.{% if latest %} Last checked {{ latest.checked_at|ago }}.{% endif %}
{% else %}{{ "Not checked yet. The first check runs on the next scheduler tick." if monitor.enabled else "Paused, and never checked." }}
{% endif %}| When | Error | {% if monitor.type == "http" %}Status | {% endif %}
|---|---|---|
| {{ f.checked_at|ago }} | {{ f.error_msg or "Down" }} | {% if monitor.type == "http" %}{{ f.status_code or "—" }} | {% endif %}
No failed checks on record.
{% endif %}