Skip to content

Commit

Permalink
EPMRPP-96317 extend analyzer statistics (#149)
Browse files Browse the repository at this point in the history
* EPMRPP-96317 extend analyzer statistics
  • Loading branch information
grabsefx authored Dec 6, 2024
1 parent 6b3aef6 commit c786eac
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ public void execute() {
int autoAnalyzed = 0;
int userAnalyzed = 0;
int sentToAnalyze = 0;
int skipped;
int passed;
String version;
boolean analyzerEnabled;
Set<String> status = new HashSet<>();
Expand All @@ -130,6 +132,8 @@ public void execute() {
status.add("automatically");
sentToAnalyze += metadata.optInt("sentToAnalyze");
}
skipped = metadata.optInt("skipped");
passed = metadata.optInt("passed");

userAnalyzed += metadata.optInt("userAnalyzed");
autoAnalyzed += metadata.optInt("analyzed");
Expand All @@ -145,7 +149,11 @@ public void execute() {
params.put("version", version);
params.put("type", analyzerEnabled ? "is_analyzer" : "not_analyzer");
if (analyzerEnabled) {
params.put("number", autoAnalyzed + "#" + userAnalyzed + "#" + sentToAnalyze);
params.put("number", autoAnalyzed
+ "#" + userAnalyzed
+ "#" + sentToAnalyze
+ "#" + skipped
+ "#" + passed);
params.put("auto_analysis", String.join("#", autoAnalysisState));
params.put("status", String.join("#", status));
}
Expand Down

0 comments on commit c786eac

Please sign in to comment.