[common] 修改protobuf传输结构,新增指标字段类型
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -16,11 +16,19 @@ message MetricsData
|
||||
// 采集响应信息
|
||||
string msg = 6;
|
||||
// 采集指标名
|
||||
repeated string fields = 7;
|
||||
repeated Field fields = 7;
|
||||
// 采集指标值集合(fields作为字段名称与ValueRow映射)
|
||||
repeated ValueRow values = 8;
|
||||
}
|
||||
|
||||
message Field
|
||||
{
|
||||
// 指标采集字符名称
|
||||
string name = 1;
|
||||
// 字段类型:0-number数字 1-string字符串
|
||||
uint32 type = 2;
|
||||
}
|
||||
|
||||
message ValueRow
|
||||
{
|
||||
// 主键实例,唯一标识这行数据
|
||||
|
||||
Reference in New Issue
Block a user