Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Assets http.FileSystem = &embedFS{assetsFS}
Assets contains assets required to render the Plot.
Functions ¶
func ErrorLabeler ¶
ErrorLabeler is an HTMLPlotLabeler which labels a result with an OK or ERROR label based on whether it has an error set.
Types ¶
type Labeler ¶
An Labeler is a function that returns a label to partition and represent Results in separate (but overlaid) line charts in the rendered plot.
type Opt ¶
type Opt func(*Plot)
Opt is a functional option type for Plot.
func Downsample ¶
Downsample returns an Opt that enables downsampling to the given threshold number of data points per labeled series.
type Plot ¶
type Plot struct {
// contains filtered or unexported fields
}
An Plot represents an interactive HTML time series plot of Result latencies over time.
func New ¶
New returns a Plot with the given Opts applied. If no Label opt is given, ErrorLabeler will be used as default.