ganeti-3.1: Cluster-based virtualization management software
Safe HaskellSafe-Inferred
LanguageHaskell2010

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 CPUstat #

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

Constructors

CPUstat 

Fields

Instances

Instances details
Show CPUstat # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

showsPrec :: Int -> CPUstat -> ShowS

show :: CPUstat -> String

showList :: [CPUstat] -> ShowS

ArrayObject CPUstat # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

toJSArray :: CPUstat -> [JSValue] #

fromJSArray :: [JSValue] -> Result CPUstat #

DictObject CPUstat # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

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

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

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

Eq CPUstat # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

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

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

JSON CPUstat # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

readJSON :: JSValue -> Result CPUstat

showJSON :: CPUstat -> JSValue

readJSONs :: JSValue -> Result [CPUstat]

showJSONs :: [CPUstat] -> JSValue

data CPUavgload #

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

Constructors

CPUavgload 

Fields

Instances

Instances details
Show CPUavgload # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

showsPrec :: Int -> CPUavgload -> ShowS

show :: CPUavgload -> String

showList :: [CPUavgload] -> ShowS

ArrayObject CPUavgload # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

toJSArray :: CPUavgload -> [JSValue] #

fromJSArray :: [JSValue] -> Result CPUavgload #

DictObject CPUavgload # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

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

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

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

Eq CPUavgload # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

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

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

JSON CPUavgload # 
Instance details

Defined in Ganeti.Cpu.Types

Methods

readJSON :: JSValue -> Result CPUavgload

showJSON :: CPUavgload -> JSValue

readJSONs :: JSValue -> Result [CPUavgload]

showJSONs :: [CPUavgload] -> JSValue