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
.
Synopsis
- 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 | |
|
Instances
Eq CPUavgload # | |
Defined in Ganeti.Cpu.Types (==) :: CPUavgload -> CPUavgload -> Bool (/=) :: CPUavgload -> CPUavgload -> Bool | |
Show CPUavgload # | |
Defined in Ganeti.Cpu.Types showsPrec :: Int -> CPUavgload -> ShowS show :: CPUavgload -> String showList :: [CPUavgload] -> ShowS | |
JSON CPUavgload # | |
Defined in Ganeti.Cpu.Types readJSON :: JSValue -> Result CPUavgload showJSON :: CPUavgload -> JSValue readJSONs :: JSValue -> Result [CPUavgload] showJSONs :: [CPUavgload] -> JSValue | |
ArrayObject CPUavgload # | |
Defined in Ganeti.Cpu.Types toJSArray :: CPUavgload -> [JSValue] Source # fromJSArray :: [JSValue] -> Result CPUavgload Source # | |
DictObject CPUavgload # | |
Defined in Ganeti.Cpu.Types toDict :: CPUavgload -> [(String, JSValue)] Source # fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result CPUavgload Source # fromDict :: [(String, JSValue)] -> Result CPUavgload Source # |
loadCPUavgload :: JSValue -> Result CPUavgload Source #
saveCPUavgload :: CPUavgload -> JSValue Source #
This is the format of the data parsed by the input file.
Instances
Eq CPUstat # | |
Show CPUstat # | |
JSON CPUstat # | |
ArrayObject CPUstat # | |
Defined in Ganeti.Cpu.Types | |
DictObject CPUstat # | |
loadCPUstat :: JSValue -> Result CPUstat Source #
saveCPUstat :: CPUstat -> JSValue Source #