reporters

package
v0.0.0-...-b8497f2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartDataSet

type ChartDataSet struct {
	QPSLabels             []string
	QPSValues             []float64
	BaselineQPSValues     []float64
	LatencyBins           []string
	LatencyCounts         []int
	BaselineLatencyCounts []int
}

type HTMLReporter

type HTMLReporter struct {
	// contains filtered or unexported fields
}

func NewHTMLReporter

func NewHTMLReporter() (*HTMLReporter, error)

func (*HTMLReporter) GenerateReport

func (r *HTMLReporter) GenerateReport(data *models.ValidationResult, targetPlugin string, outputPath string) error

type PrometheusReporter

type PrometheusReporter struct {
	Port int
}

PrometheusReporter exports validation metrics to Prometheus.

func NewPrometheusReporter

func NewPrometheusReporter(port int) *PrometheusReporter

NewPrometheusReporter creates a new PrometheusReporter.

func (*PrometheusReporter) ExportMetrics

func (r *PrometheusReporter) ExportMetrics(report *services.ValidationReport) error

ExportMetrics updates Prometheus metrics based on the validation report and starts the HTTP server.

type ReportData

type ReportData struct {
	Timestamp        string
	TargetPlugin     string
	OverallPass      bool
	QPSDeviation     float64
	BaselineP99      float64
	CurrentP99       float64
	BaselineQPS      float64
	CurrentQPS       float64
	StatisticalTests []StatTestResult
	ChartData        ChartDataSet
}

Data structures for the template

type StatTestResult

type StatTestResult struct {
	TestName  string
	Metric    string
	PValue    float64
	Threshold float64
	Passed    bool
}

Jump to

Keyboard shortcuts

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