module Ceilometer.Types.Disk
( PDDiskRead(..), pdDiskRead
, PDDiskWrite(..), pdDiskWrite
) where
import Control.Lens
import Ceilometer.Types.Base
newtype PDDiskRead = PDDiskRead { _pdDiskReadVal :: PFValue64 }
deriving (Show, Read, Eq)
newtype PDDiskWrite = PDDiskWrite { _pdDiskWriteVal :: PFValue64 }
deriving (Show, Read, Eq)
pdDiskRead :: Iso' PRSimple PDDiskRead
pdDiskRead = iso (PDDiskRead . _prSimpleVal) (PRSimple . _pdDiskReadVal)
pdDiskWrite :: Iso' PRSimple PDDiskWrite
pdDiskWrite = iso (PDDiskWrite . _prSimpleVal) (PRSimple . _pdDiskWriteVal)