Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Snapshot ¶
type Snapshot struct {
Timestamp time.Time `json:"timestamp"`
Uptime time.Duration `json:"uptime"`
MemoryTotal uint64 `json:"memory_total"`
MemoryUsed uint64 `json:"memory_used"`
MemoryPercent float64 `json:"memory_percent"`
CPUPercent float64 `json:"cpu_percent"`
DiskTotal uint64 `json:"disk_total"`
DiskUsed uint64 `json:"disk_used"`
DiskPercent float64 `json:"disk_percent"`
}
Snapshot represents a moment-in-time capture of system state
func SnapshotFromJSON ¶ added in v0.0.2
SnapshotFromJSON deserializes a snapshot from a JSON string
Click to show internal directories.
Click to hide internal directories.