17 lines
320 B
Protocol Buffer
17 lines
320 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
message Empty {}
|
|
|
|
message CollectedData {
|
|
string agentId = 1;
|
|
string sensorId = 2;
|
|
map<string, string> data = 3;
|
|
int64 startDate = 4;
|
|
int64 finishDate = 5;
|
|
}
|
|
|
|
service Data {
|
|
rpc sendMetric(CollectedData) returns (Empty) {}
|
|
rpc sendMeta(CollectedData) returns (Empty) {}
|
|
}
|