Package cn.nukkit.metrics
Class Metrics.SingleLineChart
java.lang.Object
cn.nukkit.metrics.Metrics.CustomChart
cn.nukkit.metrics.Metrics.SingleLineChart
- Enclosing class:
- Metrics
Represents a custom single line chart.
-
Constructor Summary
ConstructorDescriptionSingleLineChart
(String chartId, Callable<Integer> callable) Class constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.nimbusds.jose.shaded.json.JSONObject
-
Constructor Details
-
SingleLineChart
Class constructor.- Parameters:
chartId
- The id of the chart.callable
- The callable which is used to request the chart data.
-
-
Method Details
-
getChartData
- Specified by:
getChartData
in classMetrics.CustomChart
- Throws:
Exception
-