feat(api): configurable retention, housekeeping and storage overview

UPTIME_RETENTION_RAW, _HOURLY and _DAILY set TimescaleDB's retention
policies, applied by "api migrate up" with owner rights and on start;
periods too short for the charts are rejected. An hourly job deletes
delivered notifications, stale invitations and expired API tokens after
UPTIME_RETENTION_HOUSEKEEPING and resolved incidents together with the
daily aggregate. The admin panel shows size, compression, retention and
background job status of each storage level.

Closes #63

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-22 09:50:12 +01:00
1 parent 057e41d5b6
commit 538e9358c3
17 files changed
+1342 -7

No files matched your search

+2 -1
View File
@@ -143,9 +143,10 @@ templ RegionsPage(p Page, me Me, v RegionsView) {
}
}
templ AdminPage(p Page, me Me, v RegionsView) {
templ AdminPage(p Page, me Me, v RegionsView, storage StorageView) {
@consoleShell(p, me) {
@settingsHeading("admin.title", "admin.intro")
@regionsBody(v)
@storageSection(storage)
}
}