Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EPMRPP-96317 extend analyzer statistics #149

Merged
merged 2 commits into from
Dec 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 +
grabsefx marked this conversation as resolved.
Show resolved Hide resolved
"#" + userAnalyzed +
grabsefx marked this conversation as resolved.
Show resolved Hide resolved
"#" + sentToAnalyze +
grabsefx marked this conversation as resolved.
Show resolved Hide resolved
"#" + skipped +
grabsefx marked this conversation as resolved.
Show resolved Hide resolved
"#" + passed);
params.put("auto_analysis", String.join("#", autoAnalysisState));
params.put("status", String.join("#", status));
}
Expand Down
Loading