- Alerts can be acknowledged (note, assignee, duration); acknowledged alerts are left out of what needs attention (sidebar, dashboard strip, cards) but stay raised and counted by /metrics - Incidents: each time an alert is raised and goes away is recorded (alert_acks, alert_incidents, incident_notes, migration 0032), with a timeline of acks, maintenance, changes, update runs, related alerts and notes; Incidents page and a digest section - Backups of Homelab Manager's own database: daily checked VACUUM INTO copies, retention, download, check, upload, delete, and restore staged and applied at start-up before the database opens (pre-restore copy kept); alerts and /metrics for stale or failing backups - Docs: README, BACKUP, DATABASE, NOTIFICATIONS, ROLES, API; tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
14 lines
502 B
TypeScript
14 lines
502 B
TypeScript
// The names a staged restore uses in the data folder. Kept apart from applyRestore.ts, which does something when it is imported.
|
|
export const PENDING_FILE = "restore-pending.sqlite";
|
|
export const PENDING_NOTE = "restore-pending.json";
|
|
export const RESULT_NOTE = "restore-result.json";
|
|
|
|
export interface RestoreResult {
|
|
restoredAt: string;
|
|
/** The backup that is now the database. */
|
|
from: string;
|
|
/** Where the database that was in use went. */
|
|
keptAs: string | null;
|
|
by: string | null;
|
|
}
|