Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Metric ¶
type Metric struct {
Timestamp time.Time `json:"timestamp"`
CPUUsage float64 `json:"cpu_usage"`
MemoryUsage float64 `json:"memory_usage"`
}
Metric represents a single metric entry.
func LoadMetrics ¶
LoadMetrics loads metrics from the JSON file, where each line is a separate JSON object.
Click to show internal directories.
Click to hide internal directories.