Package cn.nukkit.metrics
Class Metrics
java.lang.Object
cn.nukkit.metrics.Metrics
bStats collects some data for plugin authors.
Check out https://bStats.org/ to learn more about bStats!
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a custom advanced bar chart.static class
Represents a custom advanced pie.static class
Represents a custom chart.static class
Represents a custom drill down pie.static class
Represents a custom multi line chart.static class
Represents a custom simple bar chart.static class
Represents a custom simple pie.static class
Represents a custom single line chart. -
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
B_STATS_VERSION
- See Also:
-
-
Constructor Details
-
Metrics
@Since("1.4.0.0-PN") public Metrics(String name, String serverUUID, boolean logFailedRequests, MainLogger logger) Creates a new instance and starts submitting immediately.- Parameters:
name
- The bStats metrics identifier.serverUUID
- The unique identifier of this server.logFailedRequests
- If failed submissions should be logged.logger
- The server main logger, ignored by PowerNukkit.
-
Metrics
@PowerNukkitOnly @Since("1.4.0.0-PN") public Metrics(String name, String serverUUID, boolean logFailedRequests) Creates a new instance and starts submitting immediately.- Parameters:
name
- The bStats metrics identifier.serverUUID
- The unique identifier of this server.logFailedRequests
- If failed submissions should be logged.
-
-
Method Details
-
addCustomChart
Adds a custom chart.- Parameters:
chart
- The chart to add.
-
close
public void close()
-