| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
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 CPUstat = CPUstat {}
- data CPUavgload = CPUavgload {
- cavCpuNumber :: Int
- cavCpus :: [Double]
- cavCpuTotal :: Double
Documentation
This is the format of the data parsed by the input file.
Constructors
| CPUstat | |
Instances
| Show CPUstat # | |
| ArrayObject CPUstat # | |
Defined in Ganeti.Cpu.Types | |
| DictObject CPUstat # | |
Defined in Ganeti.Cpu.Types | |
| Eq CPUstat # | |
| JSON CPUstat # | |
data CPUavgload #
This is the format of the report produced by the cpu load collector.
Constructors
| CPUavgload | |
Fields
| |
Instances
| Show CPUavgload # | |
Defined in Ganeti.Cpu.Types Methods showsPrec :: Int -> CPUavgload -> ShowS show :: CPUavgload -> String showList :: [CPUavgload] -> ShowS | |
| ArrayObject CPUavgload # | |
Defined in Ganeti.Cpu.Types | |
| DictObject CPUavgload # | |
Defined in Ganeti.Cpu.Types Methods toDict :: CPUavgload -> [(String, JSValue)] # fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result CPUavgload # fromDict :: [(String, JSValue)] -> Result CPUavgload # | |
| Eq CPUavgload # | |
Defined in Ganeti.Cpu.Types | |
| JSON CPUavgload # | |
Defined in Ganeti.Cpu.Types Methods readJSON :: JSValue -> Result CPUavgload showJSON :: CPUavgload -> JSValue readJSONs :: JSValue -> Result [CPUavgload] showJSONs :: [CPUavgload] -> JSValue | |