Safe Haskell | None |
---|
Diskstats data types
This module holds the definition of the data types describing the status of the
disks according to the information contained in procdiskstats
.
- data Diskstats = Diskstats {
- dsMajor :: Int
- dsMinor :: Int
- dsName :: String
- dsReadsNum :: Int
- dsMergedReads :: Int
- dsSecRead :: Int
- dsTimeRead :: Int
- dsWrites :: Int
- dsMergedWrites :: Int
- dsSecWritten :: Int
- dsTimeWrite :: Int
- dsIos :: Int
- dsTimeIO :: Int
- dsWIOmillis :: Int
- loadDiskstats :: JSValue -> Result Diskstats
- saveDiskstats :: Diskstats -> JSValue
Documentation
This is the format of the report produced by each data collector.
Diskstats | |
|
Eq Diskstats | |
Show Diskstats | |
JSON Diskstats | |
ArrayObject Diskstats | |
DictObject Diskstats | |
Arbitrary Diskstats | The instance for generating arbitrary Diskstats |
loadDiskstats :: JSValue -> Result DiskstatsSource
saveDiskstats :: Diskstats -> JSValueSource