ts errors

This commit is contained in:
Alex Holliday committed 2026-01-06 20:55:27 +00:00
1 parent 51081a6a0e
commit ba7cc3bb0c
13 files changed
+34 -58

No files matched your search

+1 -24
View File
@@ -109,29 +109,6 @@ export interface ICaptureInfo {
mode?: string;
}
export interface ICheck {
_id: string;
metadata: {
monitorId: string;
type: MonitorType;
teamId: string;
};
status: string;
message: string;
responseTime: number;
normalResponseTime?: number;
httpStatusCode: number;
ack: boolean;
expiry: string;
createdAt: string;
updatedAt: string;
timings: GotTimings;
lighthouse?: ICheckLighthouseFields;
system?: ISystemInfo;
// Present for docker monitor checks
dockerContainers?: IDockerContainerSummary[];
}
export interface Check {
id: string;
monitorId: string;
@@ -226,7 +203,7 @@ export interface IDokcerCheck {
}
export interface IChecksWithCount {
checks: ICheck[];
checks: Check[];
count: number;
}
+3 -3
View File
@@ -1,4 +1,4 @@
import type { AggregateCheck, ICheck } from "@/types/check";
import type { AggregateCheck, Check } from "@/types/check";
import type { IMonitorStats } from "./monitorStats";
export const MonitorTypes = [
@@ -26,7 +26,7 @@ export type MonitorStatus = (typeof MonitorStatuses)[number];
export interface IMonitor {
id: string;
checks: ICheck[];
checks: Check[];
createdAt: string;
createdBy: string;
interval: number;
@@ -57,7 +57,7 @@ export interface IMonitorWithStats {
upCount: number;
pausedCount: number;
monitors: IMonitor[];
checksMap: Record<string, ICheck[]>;
checksMap: Record<string, Check[]>;
}
export interface IMonitorWithMonitorStats {