export

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 7 Imported by: 0

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

func LoadRootCausesFromDir(dir string) ([]rootcause.RootCause, error)

LoadRootCausesFromDir loads all root cause JSON files from a directory.

func LoadRootCausesFromFile

func LoadRootCausesFromFile(filename string) ([]rootcause.RootCause, error)

LoadRootCausesFromFile loads root causes from a JSON file. Supports both single object and array formats.

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.

Jump to

Keyboard shortcuts

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