<%~ 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) : '—' %>
<%~ it.latencyChartSSR(chartPings) %>
Status History
<% if (barPings.length > 0) { %>
<% barPings.forEach(function(c) {
const color = c.down === 0 ? 'bg-green-500/70' : (c.up === 0 ? 'bg-red-500/70' : 'bg-orange-400/70');
const regionsJson = JSON.stringify(c.regions).split('&').join('&').split('"').join('"').split('<').join('<').split(String.fromCharCode(62)).join('>');
%>
<% }) %>
<% } else { %>
No data
<% } %>
Recent Pings
| Status |
Code |
Latency |
Region |
Run ID |
Time / Jitter |
Error |
<% pings.slice(0, 30).forEach(function(c) {
const pingJson = JSON.stringify(c).split('&').join('&').split('"').join('"').split('<').join('<').split(String.fromCharCode(62)).join('>');
%>
| <%~ c.up ? 'Up' : 'Down' %> |
<%= c.status_code != null ? c.status_code : '—' %> |
<%= c.latency_ms != null ? c.latency_ms + 'ms' : '—' %> |
<%= c.region || '—' %> |
<%= c.run_id || '—' %> |
<%~ 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/50', border: 'border-border-subtle' }, plan: it.plan }) %>