syntax = "proto3";

package health;

option java_package = "com.risingwave.proto";

// This proto is copied from https://github.com/grpc/grpc/blob/v1.15.0/doc/health-checking.md

message HealthCheckRequest {
  string service = 1;
}

message HealthCheckResponse {
  enum ServingStatus {
    UNKNOWN = 0;
    SERVING = 1;
    NOT_SERVING = 2;
  }
  ServingStatus status = 1;
}

service Health {
  rpc Check(HealthCheckRequest) returns (HealthCheckResponse);
}
