1syntax = "proto3";
2
3
4package telemetry;
5
6message Telemetry {
7  string node_id_str = 1;
8
9  string   subscription_id_str = 2;
10
11  string   sensor_path = 3;
12
13  uint64   collection_id = 4;
14
15  uint64   collection_start_time = 5;
16
17  // 生成这个Telemetry的message数据的时间戳
18  uint64   msg_timestamp = 6;
19
20
21  TelemetryGPBTable data_gpb = 7;
22
23  uint64 collection_end_time = 8;
24
25   uint32   current_period = 9;
26    string   except_desc = 10;
27}
28
29//多份实例数据
30message TelemetryGPBTable {
31  repeated TelemetryRowGPB row = 1;
32}
33
34message TelemetryRowGPB {
35  //每个实例数据对应的采集时间戳
36  uint64 timestamp = 1;
37
38  //GPB编码后的一份实例数据
39  bytes content = 11;
40}
41