<%~ 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
<%
const regionFlag = {
'eu-central': 'π©πͺ',
'us-west': 'πΊπΈ',
};
%>
| 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 || 'β' %> |
<%~ 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 }) %>