singlerun

package
v0.14.5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package singlerun provides utilities to handle results of a single run.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatProbeRunResults

func FormatProbeRunResults(probeResults map[string][]*ProbeRunResult, format Format, indent string) string

FormatProbeRunResults formats probe run results into text or JSON. The indent string is used for pretty-printing.

func ProbeRunResultsToProto added in v0.14.2

func ProbeRunResultsToProto(results map[string][]*ProbeRunResult) map[string]*pb.ProbeResults

ProbeRunResultsToProto converts probe run results to their protobuf form.

Types

type Format

type Format string

Format specifies the format of the output.

const (
	FormatText Format = "text"
	FormatJSON Format = "json"
)

type ProbeRunResult

type ProbeRunResult struct {
	Target  endpoint.Endpoint
	Metrics []*metrics.EventMetrics
	Success bool // Did probe run succeed?
	Latency time.Duration
	Error   error
}

ProbeRunResult encapsulates the results of a single probe run for a specific target.

Jump to

Keyboard shortcuts

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