2014-04-22 09:44:22 +09:00
|
|
|
package gopsutil
|
2014-04-18 16:34:47 +09:00
|
|
|
|
2014-04-22 10:02:01 +09:00
|
|
|
type Disk_usageStat struct {
|
2014-04-20 00:03:47 +09:00
|
|
|
Path string `json:"path"`
|
|
|
|
Total uint64 `json:"total"`
|
|
|
|
Free uint64 `json:"free"`
|
|
|
|
Used uint64 `json:"used"`
|
|
|
|
UsedPercent float64 `json:"usedPercent"`
|
2014-04-18 16:34:47 +09:00
|
|
|
}
|
|
|
|
|
2014-04-22 10:02:01 +09:00
|
|
|
type Disk_partitionStat struct {
|
2014-04-20 01:53:34 +09:00
|
|
|
Device string `json:"device"`
|
|
|
|
Mountpoint string `json:"mountpoint"`
|
|
|
|
Fstype string `json:"fstype"`
|
|
|
|
Opts string `json:"opts"`
|
|
|
|
}
|
|
|
|
|
2014-04-22 10:02:01 +09:00
|
|
|
type Disk_IO_CountersStat struct {
|
2014-04-18 16:34:47 +09:00
|
|
|
ReadCount uint64 `json:"readCount"`
|
|
|
|
WriteCount uint64 `json:"writeCount"`
|
|
|
|
ReadBytes uint64 `json:"readBytes"`
|
|
|
|
WriteBytes uint64 `json:"writeBytes"`
|
|
|
|
ReadTime uint64 `json:"readTime"`
|
|
|
|
WriteTime uint64 `json:"writeTime"`
|
2014-04-29 14:59:22 +09:00
|
|
|
Name string `json:"name"`
|
2014-04-18 16:34:47 +09:00
|
|
|
}
|