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
- toDictDiskstats :: Diskstats -> [(String, JSValue)]
Documentation
This is the format of the report produced by each data collector.
Diskstats | |
|
loadDiskstats :: JSValue -> Result DiskstatsSource
saveDiskstats :: Diskstats -> JSValueSource
toDictDiskstats :: Diskstats -> [(String, JSValue)]Source