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

Method Add

metrics/sink.go:19–19  ·  view source on GitHub ↗
(s Sample)

Source from the content-addressed store, hash-verified

17// Sink is a sample sink which will accumulate data in specific way
18type Sink interface {
19 Add(s Sample) // Add a sample to the sink.
20 Format(t time.Duration) map[string]float64 // Data for thresholds.
21 IsEmpty() bool // Check if the Sink is empty.
22}

Callers 15

ToSystemTagSetFunction · 0.65
NewSystemTagSetFunction · 0.65
parseRequestMethod · 0.65
TestRequestFunction · 0.65
TestRequestAndBatchTLSFunction · 0.65
GenerateTLSCertificateFunction · 0.65
SubmitFormMethod · 0.65
SplitMethod · 0.65
SubSegmentMethod · 0.65
roundUpFunction · 0.65
TestSlotLimitersFunction · 0.65
TestMultiSlotLimiterFunction · 0.65

Implementers 5

CounterSinkmetrics/sink.go
GaugeSinkmetrics/sink.go
TrendSinkmetrics/sink.go
RateSinkmetrics/sink.go
nativeHistogramSinkinternal/output/prometheusrw/remotewri

Calls

no outgoing calls

Tested by 15

TestRequestFunction · 0.52
TestRequestAndBatchTLSFunction · 0.52
GenerateTLSCertificateFunction · 0.52
TestSlotLimitersFunction · 0.52
TestMultiSlotLimiterFunction · 0.52
generateRandomSequenceFunction · 0.52
TestDataRacesFunction · 0.52
get128BigIntFunction · 0.52
TestIpBlockFunction · 0.52
TestMakeRequestErrorFunction · 0.52