Skip to content

Commit

Permalink
Merge pull request #137 from kubescape/fix-summary-details
Browse files Browse the repository at this point in the history
rm from json
  • Loading branch information
David Wertenteil authored Aug 20, 2023
2 parents b4dbe79 + 4ecd430 commit 5434d81
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions reporthandling/results/v1/reportsummary/datastructures.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ type ControlSummaries map[string]ControlSummary

// SummaryDetails detailed summary of the scanning. will contain versions, counters, etc.
type SummaryDetails struct {
Controls ControlSummaries `json:"controls,omitempty"`
Status apis.ScanningStatus `json:"status"`
Frameworks []FrameworkSummary `json:"frameworks"`
ResourcesSeverityCounters SeverityCounters `json:"resourcesSeverityCounters,omitempty"`
ControlsSeverityCounters SeverityCounters `json:"controlsSeverityCounters,omitempty"`
StatusCounters StatusCounters `json:"ResourceCounters"` // Backward compatibility
Score float32 `json:"score"`
ComplianceScore float32 `json:"complianceScore"`
TopWorkloadsByScore []reporthandling.IResource `json:"topWorkloadsByScore,omitempty"`
Controls ControlSummaries `json:"controls,omitempty"`
Status apis.ScanningStatus `json:"status"`
Frameworks []FrameworkSummary `json:"frameworks"`
ResourcesSeverityCounters SeverityCounters `json:"resourcesSeverityCounters,omitempty"`
ControlsSeverityCounters SeverityCounters `json:"controlsSeverityCounters,omitempty"`
StatusCounters StatusCounters `json:"ResourceCounters"` // Backward compatibility
Score float32 `json:"score"`
ComplianceScore float32 `json:"complianceScore"`
}

// FrameworkSummary summary of scanning from a single framework perspective
Expand Down

0 comments on commit 5434d81

Please sign in to comment.