@ahmedhegazee/nestjs-telescope
Version:
Advanced observability and monitoring solution for NestJS applications with ML-powered analytics, enterprise features, and production-ready scaling
25 lines (24 loc) • 1 kB
TypeScript
import { StorageDriver, StorageStats } from '../interfaces/storage.interface';
import { TelescopeEntry, TelescopeEntryFilter, TelescopeEntryResult } from '../../core/interfaces/telescope-entry.interface';
export declare class FileStorageDriver implements StorageDriver {
private readonly logger;
private readonly storageDir;
private readonly indexFile;
private index;
private initialized;
constructor(config?: any);
private initializeStorage;
store(entry: TelescopeEntry): Promise<void>;
storeBatch(entries: TelescopeEntry[]): Promise<void>;
find(filter?: TelescopeEntryFilter): Promise<TelescopeEntryResult>;
findById(id: string): Promise<TelescopeEntry | null>;
delete(id: string): Promise<boolean>;
clear(): Promise<void>;
prune(olderThan: Date): Promise<number>;
getStats(): Promise<StorageStats>;
healthCheck(): Promise<boolean>;
private loadIndex;
private saveIndex;
private ensureInitialized;
private chunkArray;
}