monitoring percentage & gb

This commit is contained in:
headlesdev
2025-05-21 22:52:32 +02:00
parent 3d7a31d3de
commit e7d56fa496
9 changed files with 228 additions and 114 deletions

View File

@@ -0,0 +1,18 @@
/*
Warnings:
- You are about to drop the column `cpuUsage` on the `server_monitoring` table. All the data in the column will be lost.
- You are about to drop the column `gpuUsage` on the `server_monitoring` table. All the data in the column will be lost.
- Added the required column `cpuPercentUsage` to the `server_monitoring` table without a default value. This is not possible if the table is not empty.
- Added the required column `diskPercentUsage` to the `server_monitoring` table without a default value. This is not possible if the table is not empty.
- Added the required column `gpuPercentUsage` to the `server_monitoring` table without a default value. This is not possible if the table is not empty.
- Added the required column `memoryPercentUsage` to the `server_monitoring` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "server_monitoring" DROP COLUMN "cpuUsage",
DROP COLUMN "gpuUsage",
ADD COLUMN "cpuPercentUsage" DOUBLE PRECISION NOT NULL,
ADD COLUMN "diskPercentUsage" DOUBLE PRECISION NOT NULL,
ADD COLUMN "gpuPercentUsage" DOUBLE PRECISION NOT NULL,
ADD COLUMN "memoryPercentUsage" DOUBLE PRECISION NOT NULL;