From 5877b100bc0e3497f72cbb2b619311788b3bdb96 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 14 Apr 2024 17:32:23 +0100 Subject: [PATCH] update example player --- .../java/xyz/mcutils/backend/controller/HomeController.java | 4 ++-- src/main/java/xyz/mcutils/backend/service/MetricService.java | 2 -- src/main/java/xyz/mcutils/backend/service/metric/Metric.java | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/xyz/mcutils/backend/controller/HomeController.java b/src/main/java/xyz/mcutils/backend/controller/HomeController.java index f355471..281778b 100644 --- a/src/main/java/xyz/mcutils/backend/controller/HomeController.java +++ b/src/main/java/xyz/mcutils/backend/controller/HomeController.java @@ -13,14 +13,14 @@ public class HomeController { /** * 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 exampleBedrockServer = "geo.hivebedrock.network"; @GetMapping(value = "/") public String home(Model model) { 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("bedrock_server_example_url", Config.INSTANCE.getWebPublicUrl() + "/server/bedrock/" + exampleBedrockServer); model.addAttribute("mojang_endpoint_status_url", Config.INSTANCE.getWebPublicUrl() + "/mojang/status"); diff --git a/src/main/java/xyz/mcutils/backend/service/MetricService.java b/src/main/java/xyz/mcutils/backend/service/MetricService.java index ff4ef31..fd03937 100644 --- a/src/main/java/xyz/mcutils/backend/service/MetricService.java +++ b/src/main/java/xyz/mcutils/backend/service/MetricService.java @@ -39,8 +39,6 @@ public class MetricService { registerMetric(new TotalRequestsMetric()); registerMetric(new RequestsPerRouteMetric()); - // todo: don't bother saving and loading metrics when running tests - // Load the metrics from Redis loadMetrics(); diff --git a/src/main/java/xyz/mcutils/backend/service/metric/Metric.java b/src/main/java/xyz/mcutils/backend/service/metric/Metric.java index 7a5ed34..37ff526 100644 --- a/src/main/java/xyz/mcutils/backend/service/metric/Metric.java +++ b/src/main/java/xyz/mcutils/backend/service/metric/Metric.java @@ -11,7 +11,6 @@ import org.springframework.data.redis.core.RedisHash; @AllArgsConstructor @Getter @Setter @RedisHash(value = "metric") -@Measurement(name = "metric") public abstract class Metric { /** * The id of the metric.