2016-01-06 22:24:54 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
// This is commented out due to import cycles.
|
|
|
|
// But its what we expect the RPC service to
|
|
|
|
// return.
|
|
|
|
//
|
|
|
|
// service Debug {
|
|
|
|
// rpc Health(HealthRequest) returns (HealthResponse) {}
|
2016-05-29 00:30:47 +03:00
|
|
|
// rpc Stats(StatsRequest) returns (StatsResponse) {}
|
2016-01-06 22:24:54 +03:00
|
|
|
// }
|
|
|
|
|
|
|
|
message HealthRequest {
|
|
|
|
}
|
|
|
|
|
|
|
|
message HealthResponse {
|
2016-05-29 00:30:47 +03:00
|
|
|
// default: ok
|
2016-01-06 22:24:54 +03:00
|
|
|
string status = 1;
|
|
|
|
}
|
2016-05-29 00:30:47 +03:00
|
|
|
|
|
|
|
message StatsRequest {
|
|
|
|
}
|
|
|
|
|
|
|
|
message StatsResponse {
|
|
|
|
// unix timestamp
|
|
|
|
uint64 started = 1;
|
|
|
|
// in seconds
|
|
|
|
uint64 uptime = 2;
|
|
|
|
// in bytes
|
|
|
|
uint64 memory = 3;
|
|
|
|
// num threads
|
|
|
|
uint64 threads = 4;
|
|
|
|
// total gc in nanoseconds
|
|
|
|
uint64 gc = 5;
|
|
|
|
}
|