Revision 1f9066c0 Ganeti/HTools/Types.hs

b/Ganeti/HTools/Types.hs
29 29
    , NameAssoc
30 30
    , Score
31 31
    , Weight
32
    , RSpec(..)
32 33
    , DynUtil(..)
33 34
    , zeroUtil
34 35
    , baseUtil
......
62 63
-- | A separate name for a weight metric.
63 64
type Weight = Double
64 65

  
66
-- | The resource spec type.
67
data RSpec = RSpec
68
    { rspecCpu  :: Int  -- ^ Requested VCPUs
69
    , rspecMem  :: Int  -- ^ Requested memory
70
    , rspecDsk  :: Int  -- ^ Requested disk
71
    } deriving (Show)
72

  
65 73
-- | The dynamic resource specs of a machine (i.e. load or load
66 74
-- capacity, as opposed to size).
67 75
data DynUtil = DynUtil

Also available in: Unified diff