fix unit
This commit is contained in:
parent
19803549ad
commit
99ef4380c7
@ -188,7 +188,7 @@ report_event(DeviceUUID, NewStatus) when is_binary(DeviceUUID), is_integer(NewSt
|
|||||||
FieldsList = [#{
|
FieldsList = [#{
|
||||||
<<"key">> => <<"device_status">>,
|
<<"key">> => <<"device_status">>,
|
||||||
<<"value">> => NewStatus,
|
<<"value">> => NewStatus,
|
||||||
<<"unit">> => <<"">>,
|
<<"unit">> => 0,
|
||||||
<<"type">> => <<"DI">>,
|
<<"type">> => <<"DI">>,
|
||||||
<<"name">> => <<"设备状态"/utf8>>,
|
<<"name">> => <<"设备状态"/utf8>>,
|
||||||
<<"timestamp">> => Timestamp
|
<<"timestamp">> => Timestamp
|
||||||
|
|||||||
@ -533,7 +533,7 @@ report_event(UUID, NewStatus) when is_binary(UUID), is_integer(NewStatus) ->
|
|||||||
FieldsList = [#{
|
FieldsList = [#{
|
||||||
<<"key">> => <<"host_status">>,
|
<<"key">> => <<"host_status">>,
|
||||||
<<"value">> => NewStatus,
|
<<"value">> => NewStatus,
|
||||||
<<"unit">> => <<"">>,
|
<<"unit">> => 0,
|
||||||
<<"type">> => <<"DI">>,
|
<<"type">> => <<"DI">>,
|
||||||
<<"name">> => <<"主机状态"/utf8>>,
|
<<"name">> => <<"主机状态"/utf8>>,
|
||||||
<<"timestamp">> => Timestamp
|
<<"timestamp">> => Timestamp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user