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

dsMajor :: Int
 
dsMinor :: Int
 
dsName :: String
 
dsReadsNum :: Int
 
dsMergedReads :: Int
 
dsSecRead :: Int
 
dsTimeRead :: Int
 
dsWrites :: Int
 
dsMergedWrites :: Int
 
dsSecWritten :: Int
 
dsTimeWrite :: Int
 
dsIos :: Int
 
dsTimeIO :: Int
 
dsWIOmillis :: Int
 

Instances

Eq Diskstats 
Show Diskstats 
Arbitrary Diskstats

The instance for generating arbitrary Diskstats

JSON Diskstats 

loadDiskstats :: JSValue -> Result DiskstatsSource

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