@ahmedhegazee/nestjs-telescope
Version:
Advanced observability and monitoring solution for NestJS applications with ML-powered analytics, enterprise features, and production-ready scaling
45 lines (44 loc) • 1.31 kB
TypeScript
export interface JobWatcherConfig {
enabled: boolean;
priority?: number;
tags?: string[];
dependencies?: string[];
trackJobExecution: boolean;
trackJobProgress: boolean;
trackJobResults: boolean;
trackJobErrors: boolean;
trackJobRetries: boolean;
trackJobDelays: boolean;
enablePerformanceTracking: boolean;
trackCpuUsage: boolean;
trackMemoryUsage: boolean;
trackExecutionTime: boolean;
slowJobThreshold: number;
captureJobData: boolean;
captureJobResults: boolean;
captureJobErrors: boolean;
maxDataSize: number;
trackQueueHealth: boolean;
trackQueueMetrics: boolean;
monitorQueueEvents: boolean;
trackWorkerHealth: boolean;
trackWorkerMetrics: boolean;
monitorWorkerEvents: boolean;
excludeJobTypes: string[];
excludeQueues: string[];
sampleRate: number;
enableRealTimeAlerts: boolean;
alertThresholds: {
failureRate: number;
avgExecutionTime: number;
queueSize: number;
stalledJobs: number;
timeWindow: number;
};
correlateWithRequests: boolean;
correlateWithExceptions: boolean;
correlateWithQueries: boolean;
retentionPeriod: number;
maxHistorySize: number;
}
export declare const defaultJobWatcherConfig: JobWatcherConfig;