public class RuleCatalog extends Object implements Calculator, Serializable
Constructor and Description |
---|
RuleCatalog(Schema schema) |
Modifier and Type | Method and Description |
---|---|
void |
addRuleChecker(RuleChecker ruleChecker) |
String |
getCalculatorName()
Get the name of the calculator.
|
String |
getCsv(boolean withLabels,
CompressionLevel compressionLevel)
Get result as comma separated string.
|
List<String> |
getHeader()
Get header (the name of metrics) as a list.
|
Map<String,Map<String,? extends Object>> |
getLabelledResultMap()
Get hierarchical result map.
|
List<String> |
getList(boolean withLabels,
CompressionLevel compressionLevel) |
Map<String,? extends Object> |
getResultMap()
Get results as a simple map.
|
void |
measure(PathCache cache)
Measure something from the JSON input object.
|
public RuleCatalog(Schema schema)
public void addRuleChecker(RuleChecker ruleChecker)
public void measure(PathCache cache)
Calculator
measure
in interface Calculator
cache
- The JSON cache objectpublic Map<String,? extends Object> getResultMap()
Calculator
getResultMap
in interface Calculator
public Map<String,Map<String,? extends Object>> getLabelledResultMap()
Calculator
getLabelledResultMap
in interface Calculator
public String getCsv(boolean withLabels, CompressionLevel compressionLevel)
Calculator
getCsv
in interface Calculator
withLabels
- Flag whether the individal parts should contain the
metric or not.compressionLevel
- If the value is a double, it is possible to
remove the zeroes from the end, so make the
value a bit compressed.public List<String> getList(boolean withLabels, CompressionLevel compressionLevel)
getList
in interface Calculator
public List<String> getHeader()
Calculator
getHeader
in interface Calculator
public String getCalculatorName()
Calculator
getCalculatorName
in interface Calculator
Copyright © 2020. All rights reserved.