1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-18 08:26:38 +02:00
go-micro/debug/proto/debug.proto

31 lines
480 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
2019-08-06 18:53:14 +02:00
service Debug {
rpc Health(HealthRequest) returns (HealthResponse) {}
rpc Stats(StatsRequest) returns (StatsResponse) {}
}
message HealthRequest {
}
message HealthResponse {
2016-05-28 23:30:47 +02:00
// default: ok
string status = 1;
}
2016-05-28 23:30:47 +02: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;
}