lib/health-indicators/microservice/microservice.health.ts
The MicroserviceHealthIndicator is a health indicators which is used for health checks related to microservices
Methods |
constructor()
|
Initializes the health indicator |
Async pingCheck | ||||||||||||
pingCheck(key: string, options: MicroserviceHealthIndicatorOptions)
|
||||||||||||
Checks if the given microservice is up
Parameters :
Example :
Returns :
Promise<HealthIndicatorResult>
|
Protected getStatus | ||||||||||||||||
getStatus(key: string, isHealthy: boolean, data?: literal type)
|
||||||||||||||||
Generates the health indicator result object
Parameters :
Returns :
HealthIndicatorResult
|