[common] 修改protobuf传输结构,新增指标字段类型

This commit is contained in:
tomsun28
2021-11-25 21:18:43 +08:00
parent 00be374aaa
commit bbc69fac20
2 changed files with 1056 additions and 142 deletions

View File

@@ -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
{
// 主键实例,唯一标识这行数据