Package org.geysermc.connector.metrics
Class Metrics
java.lang.Object
org.geysermc.connector.metrics.Metrics
bStats collects some data for plugin authors.
Check out https://bStats.org/ to learn more about bStats!
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a custom advanced bar chart.static classRepresents a custom advanced pie.static classRepresents a custom chart.static classRepresents a custom drilldown pie.static classRepresents a custom multi line chart.static classRepresents a custom simple bar chart.static classRepresents a custom simple pie.static classRepresents a custom single line chart. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMetrics(GeyserConnector connector, String name, String serverUUID, boolean logFailedRequests, Logger logger)Class constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomChart(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(GeyserConnector connector, String name, String serverUUID, boolean logFailedRequests, Logger logger)Class constructor.- Parameters:
connector- The GeyserConnector 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.
-