Safe Haskell | None |
---|
Ganeti.Cpu.Types
Description
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.
Constructors
CPUavgload | |
Fields
|
Instances
Eq CPUavgload # | |
Defined in Ganeti.Cpu.Types | |
Show CPUavgload # | |
Defined in Ganeti.Cpu.Types Methods showsPrec :: Int -> CPUavgload -> ShowS show :: CPUavgload -> String showList :: [CPUavgload] -> ShowS | |
JSON CPUavgload # | |
Defined in Ganeti.Cpu.Types Methods readJSON :: JSValue -> Result CPUavgload showJSON :: CPUavgload -> JSValue readJSONs :: JSValue -> Result [CPUavgload] showJSONs :: [CPUavgload] -> JSValue | |
ArrayObject CPUavgload # | |
Defined in Ganeti.Cpu.Types Methods toJSArray :: CPUavgload -> [JSValue] Source # fromJSArray :: [JSValue] -> Result CPUavgload Source # | |
DictObject CPUavgload # | |
Defined in Ganeti.Cpu.Types Methods 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.
Constructors
CPUstat | |
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 #