public class Metrics extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Metrics.AdvancedBarChart
Represents a custom advanced bar chart.
|
static class |
Metrics.AdvancedPie
Represents a custom advanced pie.
|
static class |
Metrics.CustomChart
Represents a custom chart.
|
static class |
Metrics.DrilldownPie
Represents a custom drilldown pie.
|
static class |
Metrics.MultiLineChart
Represents a custom multi line chart.
|
static class |
Metrics.SimpleBarChart
Represents a custom simple bar chart.
|
static class |
Metrics.SimplePie
Represents a custom simple pie.
|
static class |
Metrics.SingleLineChart
Represents a custom single line chart.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
B_STATS_VERSION |
| Constructor and Description |
|---|
Metrics(GeyserConnector connector,
String name,
String serverUUID,
boolean logFailedRequests,
Logger logger)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomChart(Metrics.CustomChart chart)
Adds a custom chart.
|
public static final int B_STATS_VERSION
public Metrics(GeyserConnector connector, String name, String serverUUID, boolean logFailedRequests, Logger logger)
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.public void addCustomChart(Metrics.CustomChart chart)
chart - The chart to add.Copyright © 2021 GeyserMC. All rights reserved.