ceilometer-common-0.2.3: Common Haskell types and encoding for OpenStack Ceilometer

Safe HaskellNone
LanguageHaskell2010

Ceilometer.Fold

Contents

Synopsis

Generic folds (and Decode)

class Known a where Source

An OpenStack measured known to Ceilometer. We can determine how to decode and aggregate Vaultaire data for it.

data FoldResult Source

A universial wrapper of fold results to expose to the user.

For simplicity, it's not associated with the Known class. If the need to do that arises, use Typeable and Constraint tricks to pattern match.

Low-level folds

Utilities

timewrapFold :: Fold x y -> Fold (Timed x) y Source

Wrap a fold that doens't depend on time.