forked from cloudfoundry/bosh-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitals.go
32 lines (26 loc) · 769 Bytes
/
vitals.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 vitals
type Vitals struct {
CPU CPUVitals `json:"cpu"`
Disk DiskVitals `json:"disk,omitempty"`
Load []string `json:"load,omitempty"`
Mem MemoryVitals `json:"mem"`
Swap MemoryVitals `json:"swap"`
Uptime UptimeVitals `json:"uptime"`
}
type CPUVitals struct {
Sys string `json:"sys,omitempty"`
User string `json:"user,omitempty"`
Wait string `json:"wait,omitempty"`
}
type DiskVitals map[string]SpecificDiskVitals
type SpecificDiskVitals struct {
InodePercent string `json:"inode_percent,omitempty"`
Percent string `json:"percent,omitempty"`
}
type MemoryVitals struct {
Kb string `json:"kb,omitempty"`
Percent string `json:"percent,omitempty"`
}
type UptimeVitals struct {
Secs uint64 `json:"secs,omitempty"`
}