package adminconsole // StatusCount pairs a status label with its current row count for the // dashboard's per-status tables. It is the view-layer counterpart of the // data gathered by the ops-status reader; the server handler maps between // them so this package stays free of database concerns. type StatusCount struct { Status string Count int64 } // DashboardData is the view model for the console landing page. MonitorAvailable // is false when no ops-status reader is wired, in which case the monitoring // panels are omitted. Errors carries non-fatal probe failures for display. type DashboardData struct { MonitorAvailable bool BackendReady bool PostgresHealthy bool Runtimes []StatusCount MailDeliveries []StatusCount NotificationRoutes []StatusCount NotificationMalformed int64 Errors []string }