lib/health-indicators/microservice/grpc.health.ts
The GRPCHealthIndicator
is used for health checks
related to GRPC
Methods |
|
constructor()
|
Initializes the health indicator |
Async checkService | ||||||||||||||||||||
checkService(key: string, service: string, options: CheckGRPCServiceOptions)
|
||||||||||||||||||||
Checks if the given service is up using the standart health check specification of GRPC. https://github.com/grpc/grpc/blob/master/doc/health-checking.md
Parameters :
Example :
Returns :
Promise<HealthIndicatorResult>
|
Protected getStatus | ||||||||||||||||
getStatus(key: string, isHealthy: boolean, data?: literal type)
|
||||||||||||||||
Generates the health indicator result object
Parameters :
Returns :
HealthIndicatorResult
|