liuhaijun 3f5f28d785 add sheduling agent
Change-Id: I89f35fb3984044c57f10727432755012542f9fd8
2023-11-16 10:55:57 +00:00

29 lines
1.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package heartbeat
import "time"
// 1.返回应用一体机开机后运行时间和开始时间
// 2.返回CPU、内存、网卡等配置信息、型号信息、操作系统信息硬盘信息等
// HeartBeat 一体机-心跳检测信息
type HeartBeat struct {
SerialNo string `json:"serialNo"` // 序列号
AgentVersion string `json:"agentVersion"` // 小助手版本
IPAddress string `json:"ipAddress"` // ip地址多个逗号分割
MACAddress string `json:"macAddress"` // mac地址
Architecture string `json:"archType"` // architecture
KernelVersion string `json:"kernelVersion"` // kernel_version
OS string `json:"osInfo"` // os
OSType string `json:"osType"` // os
LastStarttime time.Time `json:"lastStarttime"` // 最近开机时间, 2023-08-16 00:00:00 - 2023-08-16 23:59:59
COMInfo []COMInfo `json:"comInfo"` // 组件信息
}
type COMInfo struct {
LastStarttime time.Time `json:"lastStarttime"` // 最近运行时间, 2023-08-16 00:00:00
Name string `json:"name"` // 组件名称
Status string `json:"status"` // 组件状态0:离线1:在线2:故障
}