设备状态信息接收
POST
/devices/<device_sn:str>/ws
接口描述
接收设备状态信息的上报接口,注意这是websocket链接
请求参数
application/json参数名
类型
描述
必填
参数要求
jsonrpc
str
JSON-RPC协议版本,必须写为“2.0”
必填
2.0
method
str
请求方法,设为"device-status"
必填
device-status
user
str
用户cpu时间
必填
system
str
系统cpu时间
必填
idle
str
空闲cpu时间
必填
io_wait
str
io等待cpu时间
必填
total
str
内存总大小
必填
free
str
空闲内存大小
必填
buff_cache
str
buff/cache总量(可能是两个值?不对再分开)
必填
id
str
客户端标识id
必填