module Ceilometer.Types.Neutron
( PDNeutronTx(..), pdNeutronTx
, PDNeutronRx(..), pdNeutronRx
) where
import Control.Lens
import Ceilometer.Types.Base
newtype PDNeutronTx = PDNeutronTx { _pdNeutronTxVal :: PFValue64 }
deriving (Show, Read, Eq)
newtype PDNeutronRx = PDNeutronRx { _pdNeutronRxVal :: PFValue64 }
deriving (Show, Read, Eq)
pdNeutronTx :: Iso' PRSimple PDNeutronTx
pdNeutronTx = iso (PDNeutronTx . _prSimpleVal) (PRSimple . _pdNeutronTxVal)
pdNeutronRx :: Iso' PRSimple PDNeutronRx
pdNeutronRx = iso (PDNeutronRx . _prSimpleVal) (PRSimple . _pdNeutronRxVal)