lib/health-indicators/database/mongoose.health.ts
The MongooseHealthIndicator contains health indicators which are used for health checks related to Mongoose
Methods |
constructor(moduleRef: ModuleRef)
|
||||||||
Initializes the MongooseHealthIndicator
Parameters :
|
Public Async pingCheck | |||||||||||||||
pingCheck(key: string, options: MongoosePingCheckSettings)
|
|||||||||||||||
Checks if the MongoDB 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
|