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
- emptyCPUavgload :: CPUavgload
- 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
emptyCPUavgload :: CPUavgloadSource
CPU activity of an idle node. This can be used as a default value for offline nodes.
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