reports

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package reports renders shareable artifacts (CSV / JSON / HTML) from raw probe samples.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillTargetRTTStats

func FillTargetRTTStats(row *targetStats, rtts, rttsTimeOrder []float64)

FillTargetRTTStats populates percentile/max/mean/jitter pointer fields. rtts is sorted in place; rttsTimeOrder must be in time order. No-op if empty.

Types

type Format

type Format int

Format selects report outputs. Combine with bitwise OR.

const (
	FormatCSV Format = 1 << iota
	FormatJSON
	FormatHTML
)

Format flags, OR'd together to select report outputs.

type GenerateParams

type GenerateParams struct {
	OutDir   string
	FromMs   int64
	ToMs     int64
	Targets  []string // optional filter; empty = all
	Formats  Format
	BaseName string // optional, defaults to "vigil-report-<timestamp>"
}

GenerateParams configures one report run.

type Result

type Result struct {
	Paths []string `json:"paths"`
}

Result lists the paths of every artifact produced.

func Generate

func Generate(ctx context.Context, store *storage.Client, p GenerateParams) (Result, error)

Generate writes the requested formats and returns the paths actually written. On partial failure, already-written paths are kept and an error is returned so the caller can surface both.

Jump to

Keyboard shortcuts

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