-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bad config in StatsCollectorVerticle instantiation.
Change format of the client version stat string. Made client version stats recorder ignore blank versions.
- Loading branch information
1 parent
a0dd91f
commit 6df8f28
Showing
7 changed files
with
61 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.uid2.operator.monitoring; | ||
|
||
public interface ILoggedStat { | ||
public String GetLogPrefix(); | ||
public Object GetValueToLog(); | ||
} |
20 changes: 19 additions & 1 deletion
20
src/main/java/com/uid2/operator/monitoring/SiteClientVersionStat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,24 @@ | ||
package com.uid2.operator.monitoring; | ||
|
||
import java.util.Map; | ||
import java.util.Objects; | ||
|
||
public record SiteClientVersionStat(Integer siteId, Map<String, Integer> versionCounts) { | ||
public final class SiteClientVersionStat implements ILoggedStat { | ||
private final Integer siteId; | ||
private final Map<String, Integer> versionCounts; | ||
|
||
public SiteClientVersionStat(Integer siteId, Map<String, Integer> versionCounts) { | ||
this.siteId = siteId; | ||
this.versionCounts = versionCounts; | ||
} | ||
|
||
@Override | ||
public String GetLogPrefix() { | ||
return "version log; siteId=%d versions=".formatted(siteId); | ||
} | ||
|
||
@Override | ||
public Object GetValueToLog() { | ||
return versionCounts; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters