Tell a decommissioned domain apart from a broken one in the uptime history

This commit is contained in:
Gmer4Lfe
2026-08-16 11:59:41 -04:00
parent 73358e6bae
commit d5ee2d7ef1
2 changed files with 32 additions and 7 deletions
+5
View File
@@ -203,6 +203,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
'last_change' => $r['last_change'] ?? null,
'last_detail' => $r['last_detail'] ?? null,
'last_ms' => $r['last_ms'] ?? null,
// When this domain was last actually probed. The probe follows NPM's host list, so
// a domain removed there simply stops being visited while its record stays here —
// and a stored state of "down" then describes the moment it left, not today. The
// card needs this to tell "broken" from "no longer served".
'last_at' => $r['last_at'] ?? null,
// The history card below the table. One aligned series per period rather than the
// raw buckets: the client would otherwise have to re-derive calendar keys to know
// which of thirty slots a given day belongs in, and there would then be two