This commit is contained in:
anlicheng 2025-05-07 23:10:34 +08:00
parent 9d4556a97e
commit 7f7a1a322e
2 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -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">> => <<>>,