Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Remove monitored system client alias fallback
rcourtmanff1f91080789
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex b1d3c3cb3d..96953b2c56 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -255,11 +255,10 @@ making warning or offline state look contradictory.That freshest grouped observation is now canonically exposed as the structured`latest_included_signal` object. Its `at`, `source`, `name`, and `type` fieldsidentify exactly which included top-level surface reported most recently.-The backend payload contract now emits only that structured object. Frontend-clients may keep temporary raw-payload fallback support for older server-rollouts, but the canonical wire contract no longer serializes-`latest_included_signal_at`, `latest_included_signal_source`, or `last_seen`,-and normalized client models must not re-export those retired aliases.+The backend payload contract now emits only that structured object, and the+frontend monitored-system client should parse that canonical wire contract+directly rather than keeping flat alias fallback for+`latest_included_signal_at`, `latest_included_signal_source`, or `last_seen`.That client contract must also fail closed when older or partial payloads omitthe nested explanation object: the frontend may normalize missing explanationfields to empty reasons/surfaces plus a safe default summary, but it must notdiff --git a/frontend-modern/src/api/__tests__/monitoredSystemLedger.test.ts b/frontend-modern/src/api/__tests__/monitoredSystemLedger.test.tsindex 94245b325a..dcd234fca9 100644--- a/frontend-modern/src/api/__tests__/monitoredSystemLedger.test.ts+++ b/frontend-modern/src/api/__tests__/monitoredSystemLedger.test.ts@@ -46,9 +46,6 @@ describe('MonitoredSystemLedgerAPI', () => {source: 'agent',at: '2026-01-01T00:00:00Z',},- latest_included_signal_at: '2026-01-01T00:00:00Z',- latest_included_signal_source: 'agent',- last_seen: '2026-01-01T00:00:00Z',source: 'agent',explanation: {summary:@@ -89,8 +86,6 @@ describe('MonitoredSystemLedgerAPI', () => {type: 'host',at: '2026-01-01T00:00:00Z',},- latest_included_signal_at: '2026-01-01T00:00:00Z',- last_seen: '2026-01-01T00:00:00Z',source: 'agent',},],@@ -126,9 +121,6 @@ describe('MonitoredSystemLedgerAPI', () => {source: 'agent',at: '2026-01-01T00:00:00Z',},- latest_included_signal_at: '2026-01-01T00:00:00Z',- latest_included_signal_source: 'agent',- last_seen: '2026-01-01T00:00:00Z',source: 'agent',},],@@ -156,9 +148,6 @@ describe('MonitoredSystemLedgerAPI', () => {source: 'agent',at: '2026-01-01T00:00:00Z',},- latest_included_signal_at: '2026-01-01T00:00:00Z',- latest_included_signal_source: 'agent',- last_seen: '2026-01-01T00:00:00Z',source: 'agent',},],@@ -184,9 +173,6 @@ describe('MonitoredSystemLedgerAPI', () => {source: 'docker',at: '2026-03-23T11:59:50Z',},- latest_included_signal_at: '2026-03-23T11:59:50Z',- latest_included_signal_source: 'docker',- last_seen: '2026-03-23T11:59:50Z',source: 'multiple',},],@@ -207,34 +193,6 @@ describe('MonitoredSystemLedgerAPI', () => {expect(result.systems[0]).not.toHaveProperty('last_seen');});- it('falls back to legacy latest signal fields for older payloads', async () => {- vi.mocked(apiFetchJSON).mockResolvedValueOnce({- systems: [- {- name: 'Tower',- type: 'host',- status: 'warning',- last_seen: '2026-03-23T11:59:50Z',- source: 'multiple',- },- ],- total: 1,- limit: 5,- });-- const result = await MonitoredSystemLedgerAPI.getLedger();-- expect(result.systems[0]?.latest_included_signal).toEqual({- name: 'Tower',- type: 'host',- source: undefined,- at: '2026-03-23T11:59:50Z',- });- expect(result.systems[0]).not.toHaveProperty('latest_included_signal_at');- expect(result.systems[0]).not.toHaveProperty('latest_included_signal_source');- expect(result.systems[0]).not.toHaveProperty('last_seen');- });-it('preserves canonical status explanation reasons from the API contract', async () => {vi.mocked(apiFetchJSON).mockResolvedValueOnce({systems: [@@ -262,9 +220,6 @@ describe('MonitoredSystemLedgerAPI', () => {source: 'docker',at: '2026-03-23T11:59:50Z',},- latest_included_signal_at: '2026-03-23T11:59:50Z',- latest_included_signal_source: 'docker',- last_seen: '2026-03-23T11:59:50Z',source: 'multiple',},],@@ -300,9 +255,6 @@ describe('MonitoredSystemLedgerAPI', () => {source: 'agent',at: '2026-01-01T00:00:00Z',},- latest_included_signal_at: '2026-01-01T00:00:00Z',- latest_included_signal_source: 'agent',- last_seen: '2026-01-01T00:00:00Z',source: 'agent',},],diff --git a/frontend-modern/src/api/monitoredSystemLedger.ts b/frontend-modern/src/api/monitoredSystemLedger.tsindex 587823310b..ab9741c413 100644--- a/frontend-modern/src/api/monitoredSystemLedger.ts+++ b/frontend-modern/src/api/monitoredSystemLedger.ts@@ -72,9 +72,6 @@ type MonitoredSystemLedgerRawEntry = Omit<MonitoredSystemLedgerEntry,'status_explanation' | 'latest_included_signal' | 'explanation'> & {- latest_included_signal_at?: string; // freshest included observation, RFC3339 or empty- latest_included_signal_source?: string;- last_seen?: string; // deprecated compatibility aliasstatus_explanation?: MonitoredSystemLedgerStatusExplanation;latest_included_signal?: MonitoredSystemLedgerLatestSignal;explanation?: MonitoredSystemLedgerExplanation;@@ -186,8 +183,8 @@ function normalizeMonitoredSystemLedgerLatestSignal(name: signal?.name?.trim() || entry.name || 'Unnamed source',type: signal?.type?.trim() || entry.type || 'system',source: normalizeMonitoredSystemLedgerSource(- signal?.source ?? entry.latest_included_signal_source ?? (entry.source !== 'multiple' ? entry.source : ''),+ signal?.source ?? (entry.source !== 'multiple' ? entry.source : ''),),- at: signal?.at?.trim() || entry.latest_included_signal_at?.trim() || entry.last_seen?.trim() || '',+ at: signal?.at?.trim() || '',};}diff --git a/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts b/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.tsindex 9f7d4022e5..db55f5c2b2 100644--- a/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts@@ -252,11 +252,9 @@ describe('monitored-system model guardrails', () => {expect(monitoredSystemLedgerApiSource).toContain('getMonitoredSystemExplanationFallbackSummary');expect(monitoredSystemLedgerApiSource).toContain('type MonitoredSystemLedgerRawEntry =');expect(monitoredSystemLedgerApiSource).toContain('systems?: MonitoredSystemLedgerRawEntry[];');- expect(monitoredSystemLedgerApiSource).toContain('latest_included_signal_at?: string;');- expect(monitoredSystemLedgerApiSource).toContain('last_seen?: string;');- expect(monitoredSystemLedgerApiSource).not.toContain(- 'latest_included_signal_at: string; // freshest included observation, RFC3339 or empty',- );+ expect(monitoredSystemLedgerApiSource).not.toContain('latest_included_signal_at?: string;');+ expect(monitoredSystemLedgerApiSource).not.toContain('latest_included_signal_source?: string;');+ expect(monitoredSystemLedgerApiSource).not.toContain('last_seen?: string;');expect(monitoredSystemLedgerApiSource).not.toContain('All included top-level collection paths currently report online status.',);