proto
This commit is contained in:
16
data/data.proto
Normal file
16
data/data.proto
Normal file
@@ -0,0 +1,16 @@
|
||||
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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user