17 lines
294 B
Protocol Buffer
17 lines
294 B
Protocol Buffer
syntax = "proto3";
|
|
option go_package = "common/protos";
|
|
import "protos/empty.proto";
|
|
|
|
service Monitor {
|
|
rpc Report(Metrics) returns (Empty) {}
|
|
}
|
|
|
|
message Metrics {
|
|
string hostname = 1;
|
|
float cpu = 3;
|
|
uint32 total = 4;
|
|
uint32 free = 5;
|
|
map<string, float> metrics = 6;
|
|
}
|
|
|