Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Known a where
- data FoldResult
- foldCPU :: Fold PDCPU Word64
- foldDiskRead :: Fold PDDiskRead Word64
- foldDiskWrite :: Fold PDDiskWrite Word64
- foldNeutronRx :: Fold PDNeutronRx Word64
- foldNeutronTx :: Fold PDNeutronTx Word64
- foldVolume :: Window -> Fold (Timed PDVolume) Word64
- foldSSD :: Window -> Fold (Timed PDSSD) Word64
- foldImage :: Window -> Fold (Timed PDImage) Word64
- foldImagePollster :: Fold (Timed PDImagePollster) (Map PFValue64 Word64)
- foldInstanceFlavor :: (PDInstanceFlavor -> Bool) -> Fold (Timed PDInstanceFlavor) (Map PFValueText Word64)
- foldInstanceVCPU :: (PDInstanceVCPU -> Bool) -> Fold (Timed PDInstanceVCPU) (Map PFValue32 Word64)
- foldInstanceRAM :: (PDInstanceRAM -> Bool) -> Fold (Timed PDInstanceRAM) (Map PFValue32 Word64)
- foldInstanceDisk :: (PDInstanceDisk -> Bool) -> Fold (Timed PDInstanceDisk) (Map PFValue32 Word64)
- foldIP :: Window -> Fold (Timed PDIP) Word64
- foldSnapshot :: Window -> Fold (Timed PDSnapshot) Word64
- timewrapFold :: Fold x y -> Fold (Timed x) y
Generic folds (and Decode)
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
foldInstanceFlavor :: (PDInstanceFlavor -> Bool) -> Fold (Timed PDInstanceFlavor) (Map PFValueText Word64) Source
foldInstanceVCPU :: (PDInstanceVCPU -> Bool) -> Fold (Timed PDInstanceVCPU) (Map PFValue32 Word64) Source
foldInstanceRAM :: (PDInstanceRAM -> Bool) -> Fold (Timed PDInstanceRAM) (Map PFValue32 Word64) Source
foldInstanceDisk :: (PDInstanceDisk -> Bool) -> Fold (Timed PDInstanceDisk) (Map PFValue32 Word64) Source
foldSnapshot :: Window -> Fold (Timed PDSnapshot) Word64 Source
Utilities
timewrapFold :: Fold x y -> Fold (Timed x) y Source
Wrap a fold that doens't depend on time.