|
|
@ -9,11 +9,11 @@ type DiskUsageStat struct {
|
|
|
|
Total uint64 `json:"total"`
|
|
|
|
Total uint64 `json:"total"`
|
|
|
|
Free uint64 `json:"free"`
|
|
|
|
Free uint64 `json:"free"`
|
|
|
|
Used uint64 `json:"used"`
|
|
|
|
Used uint64 `json:"used"`
|
|
|
|
UsedPercent float64 `json:"usedPercent"`
|
|
|
|
UsedPercent float64 `json:"used_percent"`
|
|
|
|
InodesTotal uint64 `json:"inodesTotal"`
|
|
|
|
InodesTotal uint64 `json:"inodes_total"`
|
|
|
|
InodesUsed uint64 `json:"inodesUsed"`
|
|
|
|
InodesUsed uint64 `json:"inodes_used"`
|
|
|
|
InodesFree uint64 `json:"inodesFree"`
|
|
|
|
InodesFree uint64 `json:"inodes_free"`
|
|
|
|
InodesUsedPercent float64 `json:"inodesUsedPercent"`
|
|
|
|
InodesUsedPercent float64 `json:"inodes_used_percent"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type DiskPartitionStat struct {
|
|
|
|
type DiskPartitionStat struct {
|
|
|
@ -24,15 +24,15 @@ type DiskPartitionStat struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type DiskIOCountersStat struct {
|
|
|
|
type DiskIOCountersStat struct {
|
|
|
|
ReadCount uint64 `json:"readCount"`
|
|
|
|
ReadCount uint64 `json:"read_count"`
|
|
|
|
WriteCount uint64 `json:"writeCount"`
|
|
|
|
WriteCount uint64 `json:"write_count"`
|
|
|
|
ReadBytes uint64 `json:"readBytes"`
|
|
|
|
ReadBytes uint64 `json:"read_bytes"`
|
|
|
|
WriteBytes uint64 `json:"writeBytes"`
|
|
|
|
WriteBytes uint64 `json:"write_bytes"`
|
|
|
|
ReadTime uint64 `json:"readTime"`
|
|
|
|
ReadTime uint64 `json:"read_time"`
|
|
|
|
WriteTime uint64 `json:"writeTime"`
|
|
|
|
WriteTime uint64 `json:"write_time"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
IoTime uint64 `json:"ioTime"`
|
|
|
|
IoTime uint64 `json:"io_time"`
|
|
|
|
SerialNumber string `json:"serialNumber"`
|
|
|
|
SerialNumber string `json:"serial_number"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (d DiskUsageStat) String() string {
|
|
|
|
func (d DiskUsageStat) String() string {
|
|
|
|