MCPcopy
hub / github.com/grafana/k6 / TrendSink

Struct TrendSink

metrics/sink.go:113–120  ·  view source on GitHub ↗

TrendSink is a sink for a Trend

Source from the content-addressed store, hash-verified

111
112// TrendSink is a sink for a Trend
113type TrendSink struct {
114 values []float64
115 sorted bool
116
117 count uint64
118 min, max float64
119 sum float64
120}
121
122// IsEmpty indicates whether the TrendSink is empty.
123func (t *TrendSink) IsEmpty() bool { return t.count == 0 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected