#591 - monitoring

This commit is contained in:
Saeed Vaziry
2025-05-31 00:18:04 +02:00
parent 857319025f
commit c09c7a63fa
32 changed files with 1692 additions and 117 deletions

View File

@ -67,6 +67,7 @@ export interface Configs {
cronjob_intervals: {
[key: string]: string;
};
metrics_periods: string[];
[key: string]: unknown;
}

20
resources/js/types/metric.d.ts vendored Normal file
View File

@ -0,0 +1,20 @@
export interface Metric {
date: string;
load: number;
memory_total: number;
memory_used: number;
memory_free: number;
disk_total: number;
disk_used: number;
disk_free: number;
date_interval: string;
[key: string]: number | string;
}
export interface MetricsFilter {
period: string;
from?: string;
to?: string;
[key: string]: number | string;
}