json with base64
This commit is contained in:
parent
0d64f93c39
commit
234368b869
@ -56,7 +56,7 @@ write_data(Measurement, Tags, FieldsList, Timestamp) when is_binary(Measurement)
|
|||||||
%% 按照设备的uuid进行分组
|
%% 按照设备的uuid进行分组
|
||||||
Points = lists:map(fun(Fields = #{<<"key">> := Key}) ->
|
Points = lists:map(fun(Fields = #{<<"key">> := Key}) ->
|
||||||
Values = maps:remove(<<"key">>, Fields),
|
Values = maps:remove(<<"key">>, Fields),
|
||||||
NFields = #{Key => jiffy:encode(Values, [force_utf8])},
|
NFields = #{Key => Values},
|
||||||
influx_point:new(Measurement, Tags, NFields, Timestamp)
|
influx_point:new(Measurement, Tags, NFields, Timestamp)
|
||||||
end, FieldsList),
|
end, FieldsList),
|
||||||
Precision = influx_client:get_precision(Timestamp),
|
Precision = influx_client:get_precision(Timestamp),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user