Safe Haskell | None |
---|
Declaration of the datatypes and functions dealing with cluster metrics generated by template haskell.
- data MetricComponent = MetricComponent {
- name :: String
- weight :: Q Exp
- fromNode :: Q Exp
- fromNodeType :: Q Type
- statisticsType :: Q Type
- forOnlineNodes :: Bool
- optimalValue :: Maybe ExpQ
- declareStatistics :: [MetricComponent] -> Q [Dec]
- getVarStrictTypeQ :: (String, Q Type) -> VarStrictTypeQ
- nodeValuesDecl :: [MetricComponent] -> Q [Dec]
- clusterStatisticsDecl :: [MetricComponent] -> Q [Dec]
- getNodeValuesDecl :: [MetricComponent] -> Q [Dec]
- appTwice :: Q Exp -> Q Exp -> Q Exp -> Q Exp
- getQNameExp :: String -> Q Exp -> Q (Name, Exp)
- compClusterStatisticsDecl :: [MetricComponent] -> Q [Dec]
- updateClusterStatisticsDecl :: [MetricComponent] -> Q [Dec]
- compCVfromStatsDecl :: [MetricComponent] -> Q [Dec]
- showClusterStatisticsDecl :: [MetricComponent] -> Q [Dec]
- optimalCVScoreDecl :: [MetricComponent] -> Q [Dec]
Documentation
data MetricComponent Source
Data type describing the metric component. The information provided by this data type is used to generate statistics data types and functions dealing with them
MetricComponent | |
|
declareStatistics :: [MetricComponent] -> Q [Dec]Source
Declares all functions and data types implemented in template haskell
getVarStrictTypeQ :: (String, Q Type) -> VarStrictTypeQSource
nodeValuesDecl :: [MetricComponent] -> Q [Dec]Source
clusterStatisticsDecl :: [MetricComponent] -> Q [Dec]Source
getNodeValuesDecl :: [MetricComponent] -> Q [Dec]Source
getQNameExp :: String -> Q Exp -> Q (Name, Exp)Source
compClusterStatisticsDecl :: [MetricComponent] -> Q [Dec]Source
updateClusterStatisticsDecl :: [MetricComponent] -> Q [Dec]Source
compCVfromStatsDecl :: [MetricComponent] -> Q [Dec]Source
showClusterStatisticsDecl :: [MetricComponent] -> Q [Dec]Source
optimalCVScoreDecl :: [MetricComponent] -> Q [Dec]Source