disk.go 677 字节
Newer Older
1
package gopsutil
W
WAKAYAMA Shirou 已提交
2

3
type Disk_usageStat struct {
4 5 6 7 8
	Path        string  `json:"path"`
	Total       uint64  `json:"total"`
	Free        uint64  `json:"free"`
	Used        uint64  `json:"used"`
	UsedPercent float64 `json:"usedPercent"`
W
WAKAYAMA Shirou 已提交
9 10
}

11
type Disk_partitionStat struct {
12 13 14 15 16 17
	Device     string `json:"device"`
	Mountpoint string `json:"mountpoint"`
	Fstype     string `json:"fstype"`
	Opts       string `json:"opts"`
}

18
type Disk_IO_CountersStat struct {
W
WAKAYAMA Shirou 已提交
19 20 21 22 23 24 25
	ReadCount  uint64 `json:"readCount"`
	WriteCount uint64 `json:"writeCount"`
	ReadBytes  uint64 `json:"readBytes"`
	WriteBytes uint64 `json:"writeBytes"`
	ReadTime   uint64 `json:"readTime"`
	WriteTime  uint64 `json:"writeTime"`
}