health.proto 566 B

123456789101112131415161718192021222324
  1. syntax = "proto3";
  2. package grpc.health.v1;
  3. // python -m grpc_tools.protoc -I. --python_out=. --pyi_out=. --grpclib_python_out=. grpc_m/health/health.proto
  4. message HealthCheckRequest {
  5. string service = 1;
  6. }
  7. message HealthCheckResponse {
  8. enum ServingStatus {
  9. UNKNOWN = 0;
  10. SERVING = 1;
  11. NOT_SERVING = 2;
  12. SERVICE_UNKNOWN = 3; // Used only by the Watch method.
  13. }
  14. ServingStatus status = 1;
  15. }
  16. service Health {
  17. rpc Check(HealthCheckRequest) returns (HealthCheckResponse);
  18. rpc Watch(HealthCheckRequest) returns (stream HealthCheckResponse);
  19. }