2024-02-10 03:47:15 +00:00
|
|
|
import * as plugins from '../plugins.js';
|
|
|
|
|
2024-02-02 11:46:59 +00:00
|
|
|
import { type IDockerRegistryInfo } from './docker.js';
|
|
|
|
|
2024-02-01 13:33:20 +00:00
|
|
|
export interface IServerMetrics {
|
|
|
|
serverId: string;
|
|
|
|
cpuUsageInPercent: number;
|
|
|
|
memoryUsageinMB: number;
|
|
|
|
memoryAvailableInMB: number;
|
|
|
|
containerCount: number;
|
|
|
|
containerMetrics: Array<{
|
|
|
|
containerId: string;
|
|
|
|
containerName: string;
|
|
|
|
cpuUsageInPercent: number;
|
|
|
|
memoryUsageInMB: number;
|
|
|
|
}>;
|
2024-02-02 11:46:59 +00:00
|
|
|
}
|
|
|
|
|
2024-02-06 11:32:52 +00:00
|
|
|
export interface IServer {
|
2024-02-18 19:08:52 +00:00
|
|
|
id: string;
|
|
|
|
data: {
|
|
|
|
type: 'baremetal' | 'hetzner';
|
2024-02-02 11:46:59 +00:00
|
|
|
|
2024-02-18 20:15:35 +00:00
|
|
|
assignedClusterId: string;
|
|
|
|
|
2024-02-18 19:08:52 +00:00
|
|
|
/**
|
|
|
|
* a list of debian packages to be installed
|
|
|
|
*/
|
|
|
|
requiredDebianPackages: string[];
|
2024-02-02 11:46:59 +00:00
|
|
|
|
2024-02-18 19:08:52 +00:00
|
|
|
/**
|
|
|
|
* a list of SSH keys to deploy
|
|
|
|
*/
|
|
|
|
sshKeys: plugins.tsclass.network.ISshKey[];
|
|
|
|
};
|
2024-02-02 11:46:59 +00:00
|
|
|
}
|