Package xyz.geik.farmer
Class Metrics.CustomChart
java.lang.Object
xyz.geik.farmer.Metrics.CustomChart
- Direct Known Subclasses:
Metrics.AdvancedBarChart,Metrics.AdvancedPie,Metrics.DrilldownPie,Metrics.MultiLineChart,Metrics.SimpleBarChart,Metrics.SimplePie,Metrics.SingleLineChart
- Enclosing class:
Metrics
Custom chart
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Metrics.JsonObjectBuilder.JsonObjectget chart datagetRequestJsonObject(BiConsumer<String, Throwable> errorLogger, boolean logErrors) request json object
-
Constructor Details
-
CustomChart
custom chart- Parameters:
chartId- id of chart
-
-
Method Details
-
getRequestJsonObject
public Metrics.JsonObjectBuilder.JsonObject getRequestJsonObject(BiConsumer<String, Throwable> errorLogger, boolean logErrors) request json object- Parameters:
errorLogger- error loglogErrors- log error- Returns:
- json object
-
getChartData
get chart data- Returns:
- json object
- Throws:
Exception- when something wrong
-