fix remaining type issues

This commit is contained in:
Alex Holliday committed 2026-01-05 21:12:28 +00:00
1 parent 9583332852
commit ce568424a3
13 files changed
+108 -40

No files matched your search

+14 -2
View File
@@ -146,16 +146,28 @@ export interface CheckWithMonitor {
updatedAt: string;
timings: CheckTimings;
}
export interface GroupedCheck {
bucketDate: Date;
export interface AggregateCheck {
bucketDate: string;
// Common aggregates
count?: number;
upChecks?: number;
downChecks?: number;
avgResponseTime?: number;
avgResponseTimeUp?: number;
avgResponseTimeDown?: number;
// Docker aggregates
totalContainers?: number;
runningContainers?: number;
runningPercent?: number;
healthyContainers?: number;
healthyPercent?: number;
runningContainersSnapshot?: IDockerContainerSummary[];
totalExposedPorts?: number;
uniqueImages?: number;
// PageSpeed aggregates
accessibility?: number | null;
bestPractices?: number | null;
seo?: number | null;
+2 -2
View File
@@ -1,4 +1,4 @@
import type { GroupedCheck, ICheck } from "@/types/check";
import type { AggregateCheck, ICheck } from "@/types/check";
import type { IMonitorStats } from "./monitorStats";
export const MonitorTypes = [
@@ -61,7 +61,7 @@ export interface IMonitorWithStats {
}
export interface IMonitorWithMonitorStats {
checks: GroupedCheck[];
checks: AggregateCheck[];
monitor: IMonitor;
stats: IMonitorStats;
}