public interface Calculator
Modifier and Type | Method and Description |
---|---|
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.
|
void measure(PathCache cache)
cache
- The JSON cache objectMap<String,? extends Object> getResultMap()
Map<String,Map<String,? extends Object>> getLabelledResultMap()
String getCsv(boolean withLabels, CompressionLevel compressionLevel)
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.List<String> getList(boolean withLabels, CompressionLevel compressionLevel)
List<String> getHeader()
String getCalculatorName()
Copyright © 2020. All rights reserved.