diff --git a/apps/efka/include/message_pb.hrl b/apps/efka/include/message_pb.hrl index 9698fbb..6aa36e0 100644 --- a/apps/efka/include/message_pb.hrl +++ b/apps/efka/include/message_pb.hrl @@ -82,7 +82,8 @@ -define('DATA_PB_H', true). -record(data, {service_id = <<>> :: unicode:chardata() | undefined, % = 1, optional - metric = <<>> :: unicode:chardata() | undefined % = 2, optional + device_uuid = <<>> :: unicode:chardata() | undefined, % = 2, optional + metric = <<>> :: unicode:chardata() | undefined % = 3, optional }). -endif. diff --git a/message_pb.proto b/message_pb.proto index c332cc8..57fd56e 100644 --- a/message_pb.proto +++ b/message_pb.proto @@ -57,8 +57,9 @@ message ServiceMetrics { // 数据传输 message Data { string service_id = 1; + string device_uuid = 2; // measurement[,tag_key=tag_value...] field_key=field_value[,field_key2=field_value2...] [timestamp] - string metric = 2; + string metric = 3; } //#{<<"adcode">> => 0,<<"boot_time">> => 18256077,<<"city">> => <<>>,