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

Instances

Instances details
Eq CPUavgload # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

(==) :: CPUavgload -> CPUavgload -> Bool

(/=) :: CPUavgload -> CPUavgload -> Bool

Show CPUavgload # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

showsPrec :: Int -> CPUavgload -> ShowS

show :: CPUavgload -> String

showList :: [CPUavgload] -> ShowS

JSON CPUavgload # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

readJSON :: JSValue -> Result CPUavgload

showJSON :: CPUavgload -> JSValue

readJSONs :: JSValue -> Result [CPUavgload]

showJSONs :: [CPUavgload] -> JSValue

ArrayObject CPUavgload # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

toJSArray :: CPUavgload -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result CPUavgload Source #

DictObject CPUavgload # 
Instance details

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 #

data CPUstat Source #

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

Constructors

CPUstat 

Fields

Instances

Instances details
Eq CPUstat # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

(==) :: CPUstat -> CPUstat -> Bool

(/=) :: CPUstat -> CPUstat -> Bool

Show CPUstat # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

showsPrec :: Int -> CPUstat -> ShowS

show :: CPUstat -> String

showList :: [CPUstat] -> ShowS

JSON CPUstat # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

readJSON :: JSValue -> Result CPUstat

showJSON :: CPUstat -> JSValue

readJSONs :: JSValue -> Result [CPUstat]

showJSONs :: [CPUstat] -> JSValue

ArrayObject CPUstat # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

toJSArray :: CPUstat -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result CPUstat Source #

DictObject CPUstat # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

toDict :: CPUstat -> [(String, JSValue)] Source #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result CPUstat Source #

fromDict :: [(String, JSValue)] -> Result CPUstat Source #

loadCPUstat :: JSValue -> Result CPUstat Source #

saveCPUstat :: CPUstat -> JSValue Source #