Package | Description |
---|---|
de.tr7zw.changeme.nbtapi.utils |
Modifier and Type | Method and Description |
---|---|
Metrics.JsonObjectBuilder |
Metrics.JsonObjectBuilder.appendField(String key,
int value)
Appends an integer field to the JSON.
|
Metrics.JsonObjectBuilder |
Metrics.JsonObjectBuilder.appendField(String key,
int[] values)
Appends an integer array to the JSON.
|
Metrics.JsonObjectBuilder |
Metrics.JsonObjectBuilder.appendField(String key,
Metrics.JsonObjectBuilder.JsonObject object)
Appends an object to the JSON.
|
Metrics.JsonObjectBuilder |
Metrics.JsonObjectBuilder.appendField(String key,
Metrics.JsonObjectBuilder.JsonObject[] values)
Appends an object array to the JSON.
|
Metrics.JsonObjectBuilder |
Metrics.JsonObjectBuilder.appendField(String key,
String value)
Appends a string field to the JSON.
|
Metrics.JsonObjectBuilder |
Metrics.JsonObjectBuilder.appendField(String key,
String[] values)
Appends a string array to the JSON.
|
Metrics.JsonObjectBuilder |
Metrics.JsonObjectBuilder.appendNull(String key)
Appends a null field to the JSON.
|
Constructor and Description |
---|
MetricsBase(String platform,
String serverUuid,
int serviceId,
boolean enabled,
Consumer<Metrics.JsonObjectBuilder> appendPlatformDataConsumer,
Consumer<Metrics.JsonObjectBuilder> appendServiceDataConsumer,
Consumer<Runnable> submitTaskConsumer,
Supplier<Boolean> checkServiceEnabledSupplier,
BiConsumer<String,Throwable> errorLogger,
Consumer<String> infoLogger,
boolean logErrors,
boolean logSentData,
boolean logResponseStatusText)
Creates a new MetricsBase class instance.
|
MetricsBase(String platform,
String serverUuid,
int serviceId,
boolean enabled,
Consumer<Metrics.JsonObjectBuilder> appendPlatformDataConsumer,
Consumer<Metrics.JsonObjectBuilder> appendServiceDataConsumer,
Consumer<Runnable> submitTaskConsumer,
Supplier<Boolean> checkServiceEnabledSupplier,
BiConsumer<String,Throwable> errorLogger,
Consumer<String> infoLogger,
boolean logErrors,
boolean logSentData,
boolean logResponseStatusText)
Creates a new MetricsBase class instance.
|
Copyright © 2015–2024 tr7zw. All rights reserved.