Pulse/internal/types/metrics.go
Pulse Monitor 5665106a7d Initial clean Go + TypeScript rewrite
- Go backend with Proxmox/PBS integration
- Modern TypeScript/SolidJS frontend
- WebSocket real-time updates
- Clean project structure with no legacy code
2025-07-28 21:24:33 +00:00

23 lines
No EOL
506 B
Go

package types
import "time"
// MetricPoint represents a single metric value at a point in time
type MetricPoint struct {
Value float64 `json:"value"`
Timestamp time.Time `json:"timestamp"`
}
// GetTimestamp returns the timestamp for the metric point
func (m MetricPoint) GetTimestamp() time.Time {
return m.Timestamp
}
// IOMetrics represents I/O metrics at a point in time
type IOMetrics struct {
DiskRead int64
DiskWrite int64
NetworkIn int64
NetworkOut int64
Timestamp time.Time
}