Monitoring Settings API Routes

This commit is contained in:
headlesdev
2025-05-26 00:34:12 +02:00
parent eab0b76739
commit d045aad2dd
14 changed files with 673 additions and 89 deletions

View File

@@ -0,0 +1,44 @@
/*
Warnings:
- You are about to drop the column `notificationText` on the `application_monitoring_notifications` table. All the data in the column will be lost.
- You are about to drop the column `notificationText` on the `server_monitoring_notifications` table. All the data in the column will be lost.
- Added the required column `notificationLatency` to the `application_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationStatus` to the `application_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationTextLatency` to the `application_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationTextStatus` to the `application_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationCpu` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationDisk` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationGpu` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationMemory` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationStatus` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationTemperature` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationTextCpu` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationTextDisk` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationTextGpu` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationTextMemory` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationTextStatus` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
- Added the required column `notificationTextTemperature` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "application_monitoring_notifications" DROP COLUMN "notificationText",
ADD COLUMN "notificationLatency" BOOLEAN NOT NULL,
ADD COLUMN "notificationStatus" BOOLEAN NOT NULL,
ADD COLUMN "notificationTextLatency" TEXT NOT NULL,
ADD COLUMN "notificationTextStatus" TEXT NOT NULL;
-- AlterTable
ALTER TABLE "server_monitoring_notifications" DROP COLUMN "notificationText",
ADD COLUMN "notificationCpu" BOOLEAN NOT NULL,
ADD COLUMN "notificationDisk" BOOLEAN NOT NULL,
ADD COLUMN "notificationGpu" BOOLEAN NOT NULL,
ADD COLUMN "notificationMemory" BOOLEAN NOT NULL,
ADD COLUMN "notificationStatus" BOOLEAN NOT NULL,
ADD COLUMN "notificationTemperature" BOOLEAN NOT NULL,
ADD COLUMN "notificationTextCpu" TEXT NOT NULL,
ADD COLUMN "notificationTextDisk" TEXT NOT NULL,
ADD COLUMN "notificationTextGpu" TEXT NOT NULL,
ADD COLUMN "notificationTextMemory" TEXT NOT NULL,
ADD COLUMN "notificationTextStatus" TEXT NOT NULL,
ADD COLUMN "notificationTextTemperature" TEXT NOT NULL;

View File

@@ -0,0 +1,12 @@
/*
Warnings:
- You are about to drop the column `notificationStatus` on the `application_monitoring_notifications` table. All the data in the column will be lost.
- You are about to drop the column `notificationStatus` on the `server_monitoring_notifications` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "application_monitoring_notifications" DROP COLUMN "notificationStatus";
-- AlterTable
ALTER TABLE "server_monitoring_notifications" DROP COLUMN "notificationStatus";