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 275c543 commit 362896c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/dashboard/ChartPolicyViolationsClassification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export default {
let licenseData = [];
for (let i = 0; i < metrics.length; i++) {
labels.push(common.formatTimestamp(metrics[i].firstOccurrence));
securityData.push(metrics[i].policyViolationsFail);
operationalData.push(metrics[i].policyViolationsWarn);
licenseData.push(metrics[i].policyViolationsInfo);
securityData.push(metrics[i].policyViolationsSecurityTotal);
operationalData.push(metrics[i].policyViolationsOperationalTotal);
licenseData.push(metrics[i].policyViolationsLicenseTotal);
if (i === metrics.length - 1) {
labels.push(common.formatTimestamp(metrics[i].lastOccurrence));
securityData.push(metrics[i].policyViolationsSecurityTotal);
Expand Down

0 comments on commit 362896c

Please sign in to comment.