UNPKG
@actuatorjs/actuatorjs
Version:
latest (0.0.5)
0.0.5
0.0.4
0.0.3
0.0.2
Core interfaces and classes for actuatorjs ecosystem
@actuatorjs/actuatorjs
/
dist
/
esm
/
src
/
health
/
SimpleHealthIndicator.js
13 lines
(12 loc)
•
261 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
class
SimpleHealthIndicator
{
constructor
(
name, healthFunction
) {
this
.
name
= name;
this
.
checkFn
= healthFunction; }
getName
(
) {
return
this
.
name
; }
async
check
(
) {
return
await
this
.
checkFn
(); } }