UNPKG

n8n

Version:

n8n Workflow Automation Tool

17 lines (16 loc) 835 B
import { InsightsByPeriodRepository } from './database/repositories/insights-by-period.repository'; import { InsightsRawRepository } from './database/repositories/insights-raw.repository'; import { InsightsConfig } from './insights.config'; export declare class InsightsCompactionService { private readonly insightsByPeriodRepository; private readonly insightsRawRepository; private readonly insightsConfig; private compactInsightsTimer; constructor(insightsByPeriodRepository: InsightsByPeriodRepository, insightsRawRepository: InsightsRawRepository, insightsConfig: InsightsConfig); startCompactionTimer(): void; stopCompactionTimer(): void; compactInsights(): Promise<void>; compactRawToHour(): Promise<number>; compactHourToDay(): Promise<number>; compactDayToWeek(): Promise<number>; }