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
- toDictCPUavgload :: CPUavgload -> [(String, JSValue)]
- data CPUstat = CPUstat {}
- loadCPUstat :: JSValue -> Result CPUstat
- saveCPUstat :: CPUstat -> JSValue
- toDictCPUstat :: CPUstat -> [(String, 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 |
loadCPUavgload :: JSValue -> Result CPUavgloadSource
saveCPUavgload :: CPUavgload -> JSValueSource
toDictCPUavgload :: CPUavgload -> [(String, JSValue)]Source
This is the format of the data parsed by the input file.
loadCPUstat :: JSValue -> Result CPUstatSource
saveCPUstat :: CPUstat -> JSValueSource
toDictCPUstat :: CPUstat -> [(String, JSValue)]Source