-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhost.go
32 lines (31 loc) · 1.33 KB
/
host.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package rpi
// Host represents the current host specifications.
type Host struct {
ID string `json:"id"`
RaspModel string `json:"raspModel"`
Hostname string `json:"hostname"`
UpTime uint64 `json:"upTime"`
BootTime uint64 `json:"bootTime"`
OS string `json:"os"`
Platform string `json:"platform"`
PlatformFamily string `json:"platformFamily"`
PlatformVersion string `json:"platformVersion"`
KernelVersion string `json:"kernelVersion"`
KernelArch string `json:"kernelArch"`
CPU uint8 `json:"cpus"`
HyperThreading bool `json:"hyperThreading"`
VCore uint8 `json:"vcores"`
VTotal uint64 `json:"virtMemTotal"`
CPUUsedPercent float64 `json:"cpuPercent"`
VUsedPercent float64 `json:"virtMemUsedPercent"`
SUsedPercent float64 `json:"swapMemUsedPercent"`
Load1 float64 `json:"load1"`
Load5 float64 `json:"load5"`
Load15 float64 `json:"load15"`
Processes uint64 `json:"processes"`
ActiveVirtualUsers uint16 `json:"activeVirtualUsers"`
Temperature float32 `json:"temperature"`
Disks []Disk `json:"disks"`
Nets []Net `json:"nets"`
Users []User `json:"users"`
}