lib/health-indicators/database/typeorm.health.ts
The TypeOrmHealthIndicator contains health indicators which are used for health checks related to TypeOrm
Methods |
constructor(moduleRef: ModuleRef)
|
||||||||
Initializes the TypeOrmHealthIndicator
Parameters :
|
Async pingCheck | |||||||||||||||
pingCheck(key: string, options: TypeOrmPingCheckSettings)
|
|||||||||||||||
Checks if responds in (default) 1000ms and returns a result object corresponding to the result
Parameters :
Example :
Returns :
Promise<HealthIndicatorResult>
|
Protected getStatus | ||||||||||||||||
getStatus(key: string, isHealthy: boolean, data?: literal type)
|
||||||||||||||||
Generates the health indicator result object
Parameters :
Returns :
HealthIndicatorResult
|