@ahmedhegazee/nestjs-telescope
Version:
Advanced observability and monitoring solution for NestJS applications with ML-powered analytics, enterprise features, and production-ready scaling
24 lines • 536 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseWatcher = void 0;
class BaseWatcher {
constructor() {
this.enabled = false;
}
get isEnabled() {
return this.enabled;
}
enable() {
this.enabled = true;
this.onEnable();
}
disable() {
this.enabled = false;
this.onDisable();
}
async healthCheck() {
return this.enabled;
}
}
exports.BaseWatcher = BaseWatcher;
//# sourceMappingURL=watcher.interface.js.map