forked from MinecraftUtilities/Backend
update example player
This commit is contained in:
parent
3b946132af
commit
5877b100bc
@ -13,14 +13,14 @@ public class HomeController {
|
|||||||
/**
|
/**
|
||||||
* The example UUID.
|
* The example UUID.
|
||||||
*/
|
*/
|
||||||
private final String exampleUuid = "eeab5f8a-18dd-4d58-af78-2b3c4543da48";
|
private final String examplePlayer = "Notch";
|
||||||
private final String exampleJavaServer = "aetheria.cc";
|
private final String exampleJavaServer = "aetheria.cc";
|
||||||
private final String exampleBedrockServer = "geo.hivebedrock.network";
|
private final String exampleBedrockServer = "geo.hivebedrock.network";
|
||||||
|
|
||||||
@GetMapping(value = "/")
|
@GetMapping(value = "/")
|
||||||
public String home(Model model) {
|
public String home(Model model) {
|
||||||
model.addAttribute("public_url", Config.INSTANCE.getWebPublicUrl());
|
model.addAttribute("public_url", Config.INSTANCE.getWebPublicUrl());
|
||||||
model.addAttribute("player_example_url", Config.INSTANCE.getWebPublicUrl() + "/player/" + exampleUuid);
|
model.addAttribute("player_example_url", Config.INSTANCE.getWebPublicUrl() + "/player/" + examplePlayer);
|
||||||
model.addAttribute("java_server_example_url", Config.INSTANCE.getWebPublicUrl() + "/server/java/" + exampleJavaServer);
|
model.addAttribute("java_server_example_url", Config.INSTANCE.getWebPublicUrl() + "/server/java/" + exampleJavaServer);
|
||||||
model.addAttribute("bedrock_server_example_url", Config.INSTANCE.getWebPublicUrl() + "/server/bedrock/" + exampleBedrockServer);
|
model.addAttribute("bedrock_server_example_url", Config.INSTANCE.getWebPublicUrl() + "/server/bedrock/" + exampleBedrockServer);
|
||||||
model.addAttribute("mojang_endpoint_status_url", Config.INSTANCE.getWebPublicUrl() + "/mojang/status");
|
model.addAttribute("mojang_endpoint_status_url", Config.INSTANCE.getWebPublicUrl() + "/mojang/status");
|
||||||
|
@ -39,8 +39,6 @@ public class MetricService {
|
|||||||
registerMetric(new TotalRequestsMetric());
|
registerMetric(new TotalRequestsMetric());
|
||||||
registerMetric(new RequestsPerRouteMetric());
|
registerMetric(new RequestsPerRouteMetric());
|
||||||
|
|
||||||
// todo: don't bother saving and loading metrics when running tests
|
|
||||||
|
|
||||||
// Load the metrics from Redis
|
// Load the metrics from Redis
|
||||||
loadMetrics();
|
loadMetrics();
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@ import org.springframework.data.redis.core.RedisHash;
|
|||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@Getter @Setter
|
@Getter @Setter
|
||||||
@RedisHash(value = "metric")
|
@RedisHash(value = "metric")
|
||||||
@Measurement(name = "metric")
|
|
||||||
public abstract class Metric<T> {
|
public abstract class Metric<T> {
|
||||||
/**
|
/**
|
||||||
* The id of the metric.
|
* The id of the metric.
|
||||||
|
Loading…
Reference in New Issue
Block a user