<%~ lastPing ? (lastPing.up ? '' : '') : '' %>
<%= m.name %>
<%= m.url %>
Status
<%~ lastPing ? (lastPing.up ? 'Up' : 'Down') : '—' %>
Avg Latency
<%= avgLatency != null ? avgLatency + 'ms' : '—' %>
Uptime
<%= uptime != null ? uptime + '%' : '—' %>
Last Ping
<%~ lastPing ? it.timeAgoSSR(lastPing.checked_at) : '—' %>
Status History
<% if (barPings.length > 0) { %>
<% barPings.forEach(function(c) { %>
<% }) %>
<% } else { %>
No data
<% } %>
Recent Pings
<%
const regionFlag = {
'eu-central': '🇩🇪',
'us-east': '🇺🇸',
'us-west': '🇺🇸',
'ap-southeast': '🇸🇬',
};
%>
| Status |
Code |
Latency |
Region |
Run ID |
Time / Jitter |
Error |
<% pings.slice(0, 30).forEach(function(c) { %>
| <%~ c.up ? 'Up' : 'Down' %> |
<%= c.status_code != null ? c.status_code : '—' %> |
<%= c.latency_ms != null ? c.latency_ms + 'ms' : '—' %> |
<%= c.region ? (regionFlag[c.region] || '🌐') + ' ' + c.region : '—' %> |
<%= c.run_id ? c.run_id.slice(0, 8) + '…' : '—' %> |
<%~ it.timeAgoSSR(c.checked_at) %><% if (c.jitter_ms != null) { %> (+<%= c.jitter_ms %>ms)<% } %> |
<%= c.error ? c.error : '' %> |
<% }) %>
Edit Monitor
<%~ include('./partials/monitor-form', { _form: { monitor: m, isEdit: true, prefix: 'edit-', bg: 'bg-gray-800', border: 'border-gray-700' } }) %>