ganeti
Safe HaskellNone

Ganeti.Storage.Diskstats.Types

Description

Diskstats data types

This module holds the definition of the data types describing the status of the disks according to the information contained in procdiskstats.

Synopsis

Documentation

data Diskstats Source #

This is the format of the report produced by each data collector.

Constructors

Diskstats 

Fields

Instances

Instances details
Eq Diskstats # 
Instance details

Defined in Ganeti.Storage.Diskstats.Types

Methods

(==) :: Diskstats -> Diskstats -> Bool

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

Show Diskstats # 
Instance details

Defined in Ganeti.Storage.Diskstats.Types

Methods

showsPrec :: Int -> Diskstats -> ShowS

show :: Diskstats -> String

showList :: [Diskstats] -> ShowS

JSON Diskstats # 
Instance details

Defined in Ganeti.Storage.Diskstats.Types

Methods

readJSON :: JSValue -> Result Diskstats

showJSON :: Diskstats -> JSValue

readJSONs :: JSValue -> Result [Diskstats]

showJSONs :: [Diskstats] -> JSValue

ArrayObject Diskstats # 
Instance details

Defined in Ganeti.Storage.Diskstats.Types

Methods

toJSArray :: Diskstats -> [JSValue] Source #

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

DictObject Diskstats # 
Instance details

Defined in Ganeti.Storage.Diskstats.Types

Methods

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

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

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

Arbitrary Diskstats

The instance for generating arbitrary Diskstats

Instance details

Defined in Test.Ganeti.Storage.Diskstats.Parser

loadDiskstats :: JSValue -> Result Diskstats Source #