feat(integrations): add mock integration (#3505)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
import type { ClusterHealthMonitoring, SystemHealthMonitoring } from "./health-monitoring-types";
|
||||
|
||||
export interface ISystemHealthMonitoringIntegration {
|
||||
getSystemInfoAsync(): Promise<SystemHealthMonitoring>;
|
||||
}
|
||||
|
||||
export interface IClusterHealthMonitoringIntegration {
|
||||
getClusterInfoAsync(): Promise<ClusterHealthMonitoring>;
|
||||
}
|
||||
+11
-1
@@ -1,4 +1,6 @@
|
||||
export interface HealthMonitoring {
|
||||
import type { LxcResource, NodeResource, QemuResource, StorageResource } from "../../types";
|
||||
|
||||
export interface SystemHealthMonitoring {
|
||||
version: string;
|
||||
cpuModelName: string;
|
||||
cpuUtilization: number;
|
||||
@@ -25,3 +27,11 @@ export interface HealthMonitoring {
|
||||
overallStatus: string;
|
||||
}[];
|
||||
}
|
||||
|
||||
// TODO: in the future decouple this from the Proxmox integration
|
||||
export interface ClusterHealthMonitoring {
|
||||
nodes: NodeResource[];
|
||||
lxcs: LxcResource[];
|
||||
vms: QemuResource[];
|
||||
storages: StorageResource[];
|
||||
}
|
||||
Reference in New Issue
Block a user