Some checks failed
Publish to npm / npm-publish (push) Failing after 4s
CI / Type Check & Lint (push) Failing after 29s
CI / Build Test (Current Platform) (push) Successful in 1m1s
Release / build-and-release (push) Failing after 1m43s
CI / Build All Platforms (push) Successful in 2m8s
- Aggregate CPU, memory, and network stats across all running containers - Extend ISystemStatus.docker with resource usage fields - Fix getContainerStats Swarm service ID fallback - Wire dashboard resource usage card to real backend data
38 lines
980 B
TypeScript
38 lines
980 B
TypeScript
/**
|
|
* System status data shapes for Onebox
|
|
*/
|
|
|
|
import type { TPlatformServiceType, TPlatformServiceStatus } from './platform.ts';
|
|
|
|
export interface ISystemStatus {
|
|
docker: {
|
|
running: boolean;
|
|
version: unknown;
|
|
cpuUsage: number;
|
|
memoryUsage: number;
|
|
memoryTotal: number;
|
|
networkIn: number;
|
|
networkOut: number;
|
|
};
|
|
reverseProxy: {
|
|
http: { running: boolean; port: number };
|
|
https: { running: boolean; port: number; certificates: number };
|
|
routes: number;
|
|
};
|
|
dns: { configured: boolean };
|
|
ssl: { configured: boolean; certificateCount: number };
|
|
services: { total: number; running: number; stopped: number };
|
|
platformServices: Array<{
|
|
type: TPlatformServiceType;
|
|
displayName: string;
|
|
status: TPlatformServiceStatus;
|
|
resourceCount: number;
|
|
}>;
|
|
certificateHealth: {
|
|
valid: number;
|
|
expiringSoon: number;
|
|
expired: number;
|
|
expiringDomains: Array<{ domain: string; daysRemaining: number }>;
|
|
};
|
|
}
|