feat: add monitoring retention controls

This commit is contained in:
sagitchu
2026-04-28 11:41:07 +08:00
parent e8d5687419
commit 023be27287
15 changed files with 430 additions and 13 deletions
+4
View File
@@ -41,6 +41,7 @@ import type {
MonitorPermissionApiItem,
MonitorAccessApiData,
TunnelQualityApiItem,
StorageSummaryApiData,
} from "./types";
import axios from "axios";
@@ -254,6 +255,9 @@ export const updateConfigs = (configMap: Record<string, string>) =>
export const updateConfig = (name: string, value: string) =>
Network.post("/config/update-single", { name, value });
export const getStorageSummary = () =>
Network.get<StorageSummaryApiData>("/system/storage");
export const activateLicense = (licenseKey: string) =>
Network.post("/license/activate", { license_key: licenseKey });
+6
View File
@@ -474,6 +474,12 @@ export interface ServiceMonitorLimitsApiData {
maxTimeoutSec: number;
}
export interface StorageSummaryApiData {
dbType: string;
databaseSizeBytes: number;
databaseSizeText: string;
}
export interface MonitorNodeApiItem {
id: number;
inx: number;