Package org.geysermc.geyser.util
Class Metrics
java.lang.Object
org.geysermc.geyser.util.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 drilldown 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
ConstructorDescriptionMetrics(GeyserImpl geyser, String name, String serverUUID, boolean logFailedRequests, Logger logger)
Class constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomChart(Metrics.CustomChart chart)
Adds a custom chart.
-
Field Details
-
B_STATS_VERSION
public static final int B_STATS_VERSION- See Also:
- Constant Field Values
-
-
Constructor Details
-
Metrics
public Metrics(GeyserImpl geyser, String name, String serverUUID, boolean logFailedRequests, Logger logger)Class constructor.- Parameters:
geyser
- The Geyser instancename
- The name of the server software.serverUUID
- The uuid of the server.logFailedRequests
- Whether failed requests should be logged or not.logger
- The logger for the failed requests.
-
-
Method Details
-
addCustomChart
Adds a custom chart.- Parameters:
chart
- The chart to add.
-