| 123456789101112131415161718192021222324 |
- syntax = "proto3";
- package grpc.health.v1;
- // python -m grpc_tools.protoc -I. --python_out=. --pyi_out=. --grpclib_python_out=. grpc_m/health/health.proto
- message HealthCheckRequest {
- string service = 1;
- }
- message HealthCheckResponse {
- enum ServingStatus {
- UNKNOWN = 0;
- SERVING = 1;
- NOT_SERVING = 2;
- SERVICE_UNKNOWN = 3; // Used only by the Watch method.
- }
- ServingStatus status = 1;
- }
- service Health {
- rpc Check(HealthCheckRequest) returns (HealthCheckResponse);
- rpc Watch(HealthCheckRequest) returns (stream HealthCheckResponse);
- }
|