mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-29 03:50:18 +00:00
23 lines
507 B
Go
23 lines
507 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
|
|
}
|