add recent checks for infra monitors

This commit is contained in:
Alex Holliday committed 2026-08-19 10:20:21 -07:00
1 parent 092f890f7f
commit dd44e6c34f
4 files changed
+28 -8

No files matched your search

@@ -16,6 +16,8 @@ export interface SummaryConfig {
tags?: string | string[];
}
export type RecentChecksMode = "all" | "latestHardware" | "none";
export interface IMonitorsRepository {
// create
create(monitor: Monitor, teamId: string, userId: string): Promise<Monitor | null>;
@@ -29,7 +31,7 @@ export interface IMonitorsRepository {
findAllForScheduling(): Promise<MonitorScheduleFields[]>;
findByTeamId(teamId: string, config: TeamQueryConfig, options?: { includeRecentChecks?: boolean }): Promise<Monitor[]>;
findByTeamIdWithStats(teamId: string, config: TeamQueryConfig): Promise<Monitor[]>;
findByIds(monitorIds: string[], options?: { includeRecentChecks?: boolean }): Promise<Monitor[]>;
findByIds(monitorIds: string[], options?: { recentChecks?: RecentChecksMode }): Promise<Monitor[]>;
// update
updateById(monitorId: string, teamId: string, updates: Partial<Monitor>): Promise<Monitor>;