package config // ReloadStatus is the outcome of the most recent config reload attempt, // surfaced so the dashboard can tell the operator when the running // config is stale: a reload that failed validation leaves the daemon // running on the previous config, and that failure must be visible in // the UI, not buried in logs. type ReloadStatus struct { // LastError is the validation error from the most recent failed // reload attempt. Empty when the most recent attempt succeeded. LastError string `json:"last_error,omitempty"` // LastErrorAt is the RFC3339 UTC timestamp of the failed attempt. LastErrorAt string `json:"last_error_at,omitempty"` // LastReloadAt is the RFC3339 UTC timestamp of the most recent // successful reload. Empty until the first reload. LastReloadAt string `json:"last_reload_at,omitempty"` // OverlayUnavailable is the reason the runtime config overlay is not // in effect, so the running config is file-only. Set at boot when // the overlay store cannot be opened or its values fail validation, // and cleared by a successful dashboard write or reset. The // dashboard shows it so a boot-time degrade is visible where the // operator is looking, not only in logs. OverlayUnavailable string `json:"overlay_unavailable,omitempty"` }