GRPCHealthIndicator
The GRPCHealthIndicator
is used for health checks
related to GRPC
class GRPCHealthIndicator extends HealthIndicator {
checkService<GrpcOptions extends GrpcClientOptionsLike = GrpcClientOptionsLike>(key: string, service: string, options: CheckGRPCServiceOptions<GrpcOptions> = {}): Promise<HealthIndicatorResult>
// inherited from terminus/lib/HealthIndicator
protected getStatus(key: string, isHealthy: boolean, data?: { [key: string]: any; }): HealthIndicatorResult
}
Methods
checkService() |
---|
Checks if the given service is up using the standard health check specification of GRPC. |
ParametersExamples
Returns
Throws
|
https://github.com/grpc/grpc/blob/master/doc/health-checking.md |