queue and buffer refactor

This commit is contained in:
Alex Holliday committed 2026-01-16 18:11:04 +00:00
1 parent 0f764ca084
commit 95cd33ac06
10 files changed
+218 -287

No files matched your search

@@ -1,4 +1,4 @@
import type { Check, CheckAudits, MonitorStatusResponse, MonitorType } from "@/types/index.js";
import type { Check, MonitorType } from "@/types/index.js";
import type { LatestChecksMap } from "@/repositories/checks/MongoChecksRepistory.js";
export interface PageSpeedChecksResult {
@@ -55,7 +55,8 @@ export interface UptimeChecksResult {
export interface IChecksRepository {
// create
buildCheck(status: MonitorStatusResponse, type: MonitorType): Check;
createChecks(checks: Check[]): Promise<Check[]>;
// single fetch
// collection fetch
findLatestChecksByMonitorIds(monitorIds: string[], options?: { limitPerMonitor?: number }): Promise<LatestChecksMap>;