ganeti

Safe HaskellNone

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

Documentation

data CPUavgload Source

This is the format of the report produced by the cpu load collector.

Constructors

CPUavgload 

Fields

cavCpuNumber :: Int
 
cavCpus :: [Double]
 
cavCpuTotal :: Double
 

loadCPUavgload :: JSValue -> Result CPUavgloadSource

emptyCPUavgload :: CPUavgloadSource

CPU activity of an idle node. This can be used as a default value for offline nodes.

data CPUstat Source

This is the format of the data parsed by the input file.

Constructors

CPUstat 

Fields

csName :: String
 
csUser :: Integer
 
csNice :: Integer
 
csSystem :: Integer
 
csIdle :: Integer
 
csIowait :: Integer
 
csIrq :: Integer
 
csSoftirq :: Integer
 
csSteal :: Integer
 
csGuest :: Integer
 
csGuestNice :: Integer
 

loadCPUstat :: JSValue -> Result CPUstatSource