Skip to content

Commit

Permalink
Added summary section into report #345
Browse files Browse the repository at this point in the history
  • Loading branch information
zigfridus committed May 24, 2023
1 parent 8c8badd commit 3b7d863
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ public class SecHubReportMetaData {

private Map<String, String> labels = new LinkedHashMap<>();

private SecHubReportSummary summary = new SecHubReportSummary();

public Map<String, String> getLabels() {
return labels;
}

public SecHubReportSummary getSummary() {
return summary;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.mercedesbenz.sechub.commons.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class SecHubReportScan {

private long total = 0;
private long red = 0;
private long yellow = 0;
private long green = 0;

public long getTotal() {
return total;
}

public long getRed() {
return red;
}

public long getYellow() {
return yellow;
}

public long getGreen() {
return green;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.mercedesbenz.sechub.commons.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class SecHubReportSummary {

SecHubReportScan codeScan = new SecHubReportScan();
SecHubReportScan infraScan = new SecHubReportScan();

public SecHubReportScan getCodeScan() {
return codeScan;
}

public void setCodeScan(SecHubReportScan codeScan) {
this.codeScan = codeScan;
}

public SecHubReportScan getInfraScan() {
return infraScan;
}

public void setInfraScan(SecHubReportScan infraScan) {
this.infraScan = infraScan;
}
}

0 comments on commit 3b7d863

Please sign in to comment.