// The definition for the official gRPC health checking service
// as defined here https://github.com/grpc/grpc/blob/master/doc/health-checking.md
// This service should be used by clients to determine whether the instrumentation is still running.
syntax = "proto3";
package grpc.health.v1;
message HealthCheckRequest {
/// The service name to check the health for, or an empty string to check all services.
///
/// Ideally you retrieve the service name from the generated files, but the current set of services names is
/// `"rs.devtools.instrument.Instrument"`, `"rs.devtools.tauri.Tauri"`, `"rs.devtools.meta.Metadata"`, and
// `"rs.devtools.sources.Sources"`-
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);
}