Documentation ¶
Overview ¶
Package plot is a modified version of Package plot is a modified version of the github.com/tsenart/vegeta/lib/plot package. It removes the `WriteTo()` function contained in the original library and replaces it a `GetData()` function.
Package plot is a modified version of the plotting functionality exposed by in the Vegeta library: https://github.com/tsenart/vegeta/blob/d73edf2bc2663d83848da2a97a8401a7ed1440bc/lib/plot/timeseries.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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.