Skip to content

Commit

Permalink
feat(dashboard): add policy violations by state and classification cards
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <[email protected]>
  • Loading branch information
setchy committed Jan 30, 2024
1 parent d4d622c commit 35d644f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,12 @@
this.warnViolationsPercent = common.calcProgressPercent(this.totalViolations, this.warnViolations);
this.infoViolations = common.valueWithDefault(metric.policyViolationsInfo, "0");
this.infoViolationsPercent = common.calcProgressPercent(this.totalViolations, this.infoViolations);
this.securityViolations = common.valueWithDefault(metric.policyViolationsSecurityTotal, "0");
this.securityViolationsPercent = common.calcProgressPercent(this.totalViolations, this.securityViolations);
this.operationalViolations = common.valueWithDefault(metric.policyViolationsOperationalTotal, "0");
this.operationalViolationsPercent = common.calcProgressPercent(this.totalViolations, this.operationalViolations);
this.licenseViolations = common.valueWithDefault(metric.policyViolationsLicenseTotal, "0");
this.licenseViolationsPercent = common.calcProgressPercent(this.totalViolations, this.licenseViolations);
this.vulnerabilities = common.valueWithDefault(metric.vulnerabilities, "0");
this.suppressed = common.valueWithDefault(metric.suppressed, "0");
Expand Down

0 comments on commit 35d644f

Please sign in to comment.