UNPKG

@actuatorjs/actuatorjs

Version:

Core interfaces and classes for actuatorjs ecosystem

13 lines (12 loc) 261 B
export class SimpleHealthIndicator { constructor(name, healthFunction) { this.name = name; this.checkFn = healthFunction; } getName() { return this.name; } async check() { return await this.checkFn(); } }