cachly
Version:
Type-safe, production-ready in-memory cache system for Node.js and TypeScript with advanced features.
26 lines • 719 B
TypeScript
import { MonitoringConfig, HealthStatus, Metrics } from '../types';
export declare class MonitoringUtil {
private config;
private startTime;
private loadTimes;
private healthChecks;
private alertHistory;
constructor(config: MonitoringConfig);
recordLoadTime(duration: number): void;
getMetrics(): Metrics;
health(): HealthStatus;
getHealthHistory(): HealthStatus[];
addAlert(message: string): void;
getAlerts(): string[];
clearAlerts(): void;
getUptime(): number;
getLoadTimeStats(): {
min: number;
max: number;
avg: number;
p95: number;
p99: number;
};
reset(): void;
}
//# sourceMappingURL=Monitoring.d.ts.map