Safe Haskell | None |
---|
CPUload data types
This module holds the definition of the data types describing the CPU
load according to information collected periodically from procstat
.
- data CPUavgload = CPUavgload {
- cavCpuNumber :: Int
- cavCpus :: [Double]
- cavCpuTotal :: Double
- loadCPUavgload :: JSValue -> Result CPUavgload
- saveCPUavgload :: CPUavgload -> JSValue
- data CPUstat = CPUstat {}
- loadCPUstat :: JSValue -> Result CPUstat
- saveCPUstat :: CPUstat -> JSValue
Documentation
data CPUavgload Source
This is the format of the report produced by the cpu load collector.
CPUavgload | |
|
Eq CPUavgload | |
Show CPUavgload | |
JSON CPUavgload | |
ArrayObject CPUavgload | |
DictObject CPUavgload |
loadCPUavgload :: JSValue -> Result CPUavgloadSource
saveCPUavgload :: CPUavgload -> JSValueSource
This is the format of the data parsed by the input file.
Eq CPUstat | |
Show CPUstat | |
JSON CPUstat | |
ArrayObject CPUstat | |
DictObject CPUstat |
loadCPUstat :: JSValue -> Result CPUstatSource
saveCPUstat :: CPUstat -> JSValueSource