Add a power history to each game server

Each change a read of a Fragnet account sees, and each power signal sent from
here with who sent it, is written down (180 days). A server's details show the
share of the last 30 days it was on, starts and stops, a seven-day bar and the
latest changes, with who asked for them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-10 19:30:27 +01:00
1 parent 9126200295
commit a2b43bcd5d
14 files changed
+9773 -4

No files matched your search

+6
View File
@@ -1524,6 +1524,12 @@ export interface FragnetServerInfo {
firstSeenAt: string;
/** The newest backup that worked, and whether a newer one failed; null when the backups could not be listed. */
newestBackup: { at: string | null; failedSince: boolean } | null;
/** How the server has been on and off, as this app saw it; null before it has been read. */
power: {
stats: { trackedSince: string; onPercent: number | null; spanMs: number; starts: number; stops: number; lastOnAt: string | null; lastOffAt: string | null; on: boolean } | null;
timeline: { from: string; to: string; segments: { from: string; to: string; on: boolean }[] } | null;
recent: { at: string; kind: "on" | "off" | "signal"; detail: string | null; by: string | null }[];
} | null;
}
/** One Fragnet game panel account (an integration of type fragnet), as its page shows it. */