Skip to main content

Class: SimpleHealthIndicator

Defined in: health/SimpleHealthIndicator.ts:4

Implements

Constructors

Constructor

new SimpleHealthIndicator(name, healthFunction): SimpleHealthIndicator

Defined in: health/SimpleHealthIndicator.ts:8

Parameters

name

string

healthFunction

() => Promise<HealthResult>

Returns

SimpleHealthIndicator

Methods

check()

check(): Promise<HealthResult>

Defined in: health/SimpleHealthIndicator.ts:17

Returns

Promise<HealthResult>

Implementation of

HealthIndicator.check


getName()

getName(): string

Defined in: health/SimpleHealthIndicator.ts:13

Returns

string

Implementation of

HealthIndicator.getName