This commit is contained in:
Liza 2023-09-16 13:11:39 +02:00
parent d88383d9c4
commit d6db9af2e7
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -66,6 +66,7 @@ internal class InfluxStatisticsClient : IDisposable
.Tag("id", character.CharacterId.ToString()) .Tag("id", character.CharacterId.ToString())
.Tag("player_name", character.Name) .Tag("player_name", character.Name)
.Tag("type", character.CharacterType.ToString()) .Tag("type", character.CharacterType.ToString())
.Tag("fc_id", character.FreeCompanyId > 0 ? character.FreeCompanyId.ToString() : null)
.Field("gil", currencies.Gil) .Field("gil", currencies.Gil)
.Field("ventures", currencies.Ventures) .Field("ventures", currencies.Ventures)
.Field("ceruleum_tanks", currencies.CeruleumTanks) .Field("ceruleum_tanks", currencies.CeruleumTanks)
@ -78,6 +79,7 @@ internal class InfluxStatisticsClient : IDisposable
.Tag("id", character.CharacterId.ToString()) .Tag("id", character.CharacterId.ToString())
.Tag("player_name", character.Name) .Tag("player_name", character.Name)
.Tag("type", character.CharacterType.ToString()) .Tag("type", character.CharacterType.ToString())
.Tag("fc_id", character.FreeCompanyId > 0 ? character.FreeCompanyId.ToString() : null)
.Field("gc", localStats.GrandCompany) .Field("gc", localStats.GrandCompany)
.Field("gc_rank", localStats.GcRank) .Field("gc_rank", localStats.GcRank)
.Field("seals", (GrandCompany)localStats.GrandCompany switch .Field("seals", (GrandCompany)localStats.GrandCompany switch
@ -111,6 +113,7 @@ internal class InfluxStatisticsClient : IDisposable
.Tag("id", character.CharacterId.ToString()) .Tag("id", character.CharacterId.ToString())
.Tag("player_name", character.Name) .Tag("player_name", character.Name)
.Tag("msq_name", localStats.MsqName) .Tag("msq_name", localStats.MsqName)
.Tag("fc_id", character.FreeCompanyId > 0 ? character.FreeCompanyId.ToString() : null)
.Field("msq_count", localStats.MsqCount) .Field("msq_count", localStats.MsqCount)
.Field("msq_genre", localStats.MsqGenre) .Field("msq_genre", localStats.MsqGenre)
.Timestamp(date, WritePrecision.S)); .Timestamp(date, WritePrecision.S));