analyzer

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalysisResult

type AnalysisResult struct {
	Findings []awstype.Finding `json:"findings"`
	Summary  Summary           `json:"summary"`
	Errors   []string          `json:"errors,omitempty"`
}

AnalysisResult holds filtered findings and computed summary.

func Analyze

func Analyze(result *awstype.ScanResult, cfg AnalyzerConfig) *AnalysisResult

Analyze filters findings by minimum cost and computes aggregated summary statistics.

type AnalyzerConfig

type AnalyzerConfig struct {
	MinMonthlyCost float64
}

AnalyzerConfig controls analysis behavior.

type Summary

type Summary struct {
	TotalResourcesScanned int            `json:"total_resources_scanned"`
	TotalFindings         int            `json:"total_findings"`
	TotalMonthlyWaste     float64        `json:"total_monthly_waste"`
	BySeverity            map[string]int `json:"by_severity"`
	ByResourceType        map[string]int `json:"by_resource_type"`
	RegionsScanned        int            `json:"regions_scanned"`
}

Summary holds aggregated statistics about scan findings.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL