[关闭]
@sewise-dev 2017-09-14T01:42:42.000000Z 字数 700 阅读 598

node健康机制数据 卡夫卡对接

微录播

更新历史

编号 版本 说明 作者 日期
1 v1.0 1.创建文档 pakison 2017-09-14

1. 主机信息表(nodehost)结构

参数 类型 说明
sn string 主机的sn码
totalmem int 总的内存
cpu float 主机的cpu负载,百分比
freemem int 剩余的内存(单位:btye)
eth array 网卡信息(详细信息如下)
hds array 硬盘信息(详细信息如下)
vfs object 存储空间(详细信息如下)
onlineTime int 在线时长(单位:s)
updateTime string 更新时间(格式:yyyy-MM-dd HH:mm:ss)

eth

参数 类型 说明
name string 网卡名称
rx int 接收字节数(单位:btye)
tx int 发送字节数(单位:btye)
addressIP string 网卡地址

hds

参数 类型 说明
name string 硬盘名称
Power_On_Hours int 已经运转的时长(单位:h)
Temperature_Celsius int 当前的温度(单位:℃)

vfs

参数 类型 说明
total int 存储总空间
free int 剩余空间

2 主机调用卡夫卡传参

参数 类型 说明
sn string 主机的sn码
totalmem int 总的内存
cpu float 主机的cpu负载,百分比
freemem int 剩余的内存(单位:btye)
eth array 网卡信息(详细信息如下)
hds array 硬盘信息(详细信息如下)
vfs object 存储空间(详细信息如下)
onlineTime int 在线时长(单位:s)
updateTime string 更新时间(格式:yyyy-MM-dd HH:mm:ss)
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注