GroupedChecks

This commit is contained in:
Alex Holliday committed 2026-01-05 04:17:11 +00:00
1 parent cdc58e5905
commit 3182141d0a
14 files changed
+592 -62

No files matched your search

@@ -1,4 +1,8 @@
import type { CheckEntity } from "@/types/domain/index.js";
import type {
AggregateCheck,
CheckEntity,
Monitor,
} from "@/types/domain/index.js";
import type { LatestChecksByMonitor } from "@/repositories/checks/MongoCheckRepository.js";
export interface IChecksRepository {
// Create
@@ -7,6 +11,10 @@ export interface IChecksRepository {
findLatestChecksByMonitorIds(
monitorIds: string[]
): Promise<LatestChecksByMonitor>;
findRecentChecksByMonitor(
monitor: Monitor,
startDate: Date
): Promise<AggregateCheck[]>;
// Update
// Delete
}