2026-09-02 11:56:18 -07:00
|
|
|
import { DockerLog } from "@/domain/docker/docker-log.type.js";
|
|
|
|
|
|
|
|
|
|
export interface IDockerLogsRepository {
|
|
|
|
|
createDockerLogs(logs: Omit<DockerLog, "id" | "createdAt" | "updatedAt">[]): Promise<number>;
|
|
|
|
|
findLastLineTimestamp(monitorId: string, containerId: string): Promise<string | null>;
|
2026-09-04 12:06:17 -07:00
|
|
|
findByContainerName(args: { monitorId: string; containerName: string; before?: Date; after?: Date; limit: number }): Promise<DockerLog[]>;
|
2026-09-02 11:56:18 -07:00
|
|
|
deleteByMonitorId(monitorId: string): Promise<number>;
|
|
|
|
|
deleteByTeamId(teamId: string): Promise<number>;
|
|
|
|
|
deleteByMonitorIdsNotIn(monitorIds: string[]): Promise<number>;
|
|
|
|
|
}
|