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

49 lines
999 B
Protocol Buffer

syntax = "proto3";
service Debug {
rpc Health(HealthRequest) returns (HealthResponse) {};
rpc Stats(StatsRequest) returns (StatsResponse) {};
rpc Log(LogRequest) returns (stream LogEvent) {};
}
message HealthRequest {}
message HealthResponse {
// default: ok
string status = 1;
}
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;
}
// LogRequest queries service for logs
message LogRequest {
// count is the count of events
uint64 count = 1;
// relative time in seconds
// before the current time
// from which to show logs
uint64 since = 2;
// stream logs continuously
bool stream = 3;
}
// LogEvent is service log event
message LogEvent {
// event log record
// TODO: change this
string record = 1;
}