From 8999cc8d38cf1dcd865251a1db48868d5234e130 Mon Sep 17 00:00:00 2001 From: miniduikboot Date: Thu, 23 May 2024 19:53:33 +0200 Subject: [PATCH] Change tag names to snake_case by request of `promtool check metrics` --- Boot.Metrics/ClientMetrics.cs | 8 ++++---- Boot.Metrics/GameMetrics.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Boot.Metrics/ClientMetrics.cs b/Boot.Metrics/ClientMetrics.cs index 6218138..514c114 100644 --- a/Boot.Metrics/ClientMetrics.cs +++ b/Boot.Metrics/ClientMetrics.cs @@ -30,10 +30,10 @@ private IEnumerable> CalculateClientCount() { var tags = new TagList { - { "Language", client.Language.ToString() }, - { "Platform", client.PlatformSpecificData.Platform.ToString() }, - { "GameVersion", client.GameVersion }, - { "ChatMode", client.ChatMode }, + { "language", client.Language.ToString() }, + { "platform", client.PlatformSpecificData.Platform.ToString() }, + { "game_version", client.GameVersion }, + { "chat_mode", client.ChatMode }, }; _state.TryGetValue(tags, out var count); diff --git a/Boot.Metrics/GameMetrics.cs b/Boot.Metrics/GameMetrics.cs index 90f3925..6ef281d 100644 --- a/Boot.Metrics/GameMetrics.cs +++ b/Boot.Metrics/GameMetrics.cs @@ -40,10 +40,10 @@ private IEnumerable> CalculateGameCount() var tags = new TagList { - { "GameMode", game.Options.GameMode.ToString() }, - { "Map", game.Options.Map.ToString() }, - { "PlayerCount", playerCount }, - { "Public", game.IsPublic }, + { "game_mode", game.Options.GameMode.ToString() }, + { "map", game.Options.Map.ToString() }, + { "player_count", playerCount }, + { "public", game.IsPublic }, }; _state.TryGetValue(tags, out var count);