Skip to content

Commit

Permalink
feat(disk-metrics): Rename MountPoint field to Device
Browse files Browse the repository at this point in the history
  • Loading branch information
mertssmnoglu committed Dec 6, 2024
1 parent a891420 commit 41e23e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/metric/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ type MemoryData struct {
func (m MemoryData) isMetric() {}

type DiskData struct {
MountPoint string `json:"mount_point"` // Mount Point
Device string `json:"device"` // Device
ReadSpeedBytes *uint64 `json:"read_speed_bytes"` // TODO: Implement
WriteSpeedBytes *uint64 `json:"write_speed_bytes"` // TODO: Implement
TotalBytes *uint64 `json:"total_bytes"` // Total space of mounted partition in bytes
FreeBytes *uint64 `json:"free_bytes"` // Free space of mounted partition in bytes
UsagePercent *float64 `json:"usage_percent"` // Usage Percent of mounted partition
TotalBytes *uint64 `json:"total_bytes"` // Total space of device in bytes
FreeBytes *uint64 `json:"free_bytes"` // Free space of device in bytes
UsagePercent *float64 `json:"usage_percent"` // Usage Percent of device
}

func (d DiskData) isMetric() {}
Expand Down

0 comments on commit 41e23e5

Please sign in to comment.