Documentation
¶
Overview ¶
Package export provides report generation from signal-spec data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadRootCausesFromDir ¶
LoadRootCausesFromDir loads all root cause JSON files from a directory.
Types ¶
type DomainSummary ¶
type DomainSummary struct {
Domain string
Subdomain string
IssueCount int
TotalSignals int
AvgPriorityScore float64
MaxSeverity string
AreaLeader string // Assignable - maps to domain owner
ExecutionLeader string // Assignable - maps to subdomain owner
TopIssues []string
}
DomainSummary aggregates root cause metrics by domain/subdomain.
type LeaderMapping ¶
type LeaderMapping struct {
// AreaLeaders maps domain names to area leaders.
AreaLeaders map[string]string `json:"area_leaders"`
// ExecutionLeaders maps "domain|subdomain" to execution leaders.
ExecutionLeaders map[string]string `json:"execution_leaders"`
}
LeaderMapping maps domains/subdomains to leaders.
func LoadLeaderMapping ¶
func LoadLeaderMapping(filename string) (*LeaderMapping, error)
LoadLeaderMapping loads leader assignments from a JSON file.
func (*LeaderMapping) ApplyLeaders ¶
func (m *LeaderMapping) ApplyLeaders(summaries []DomainSummary)
ApplyLeaders applies leader assignments to summaries.
type SummaryReport ¶
type SummaryReport struct {
Summaries []DomainSummary
RootCauses []rootcause.RootCause
}
SummaryReport contains aggregated domain summaries and root cause details.
func BuildSummaryReport ¶
func BuildSummaryReport(rootCauses []rootcause.RootCause) *SummaryReport
BuildSummaryReport aggregates root causes by domain/subdomain.
func (*SummaryReport) WriteXLSX ¶
func (r *SummaryReport) WriteXLSX(filename string) error
WriteXLSX generates an Excel report from the summary.
Click to show internal directories.
Click to hide internal directories.