Documentation ¶
Overview ¶
Package device provides access to hardware and system information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Metrics ¶
type Metrics struct { CPUPercent float64 `json:"cpuUsage"` MemPercent float64 `json:"memoryUsage"` // contains filtered or unexported fields }
Metrics represents overall system metrics.
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor provides a source of Metrics.
func (Monitor) GetMetrics ¶
GetMetrics provides current system metrics.
Click to show internal directories.
Click to hide internal directories.