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

Interface Sink

metrics/sink.go:18–22  ·  view source on GitHub ↗

Sink is a sample sink which will accumulate data in specific way

Source from the content-addressed store, hash-verified

16
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}
23
24// NewSink creates the related Sink for
25// the provided MetricType.

Callers 24

ToSystemTagSetFunction · 0.65
NewSystemTagSetFunction · 0.65
parseRequestMethod · 0.65
TestRequestFunction · 0.65
TestRequestAndBatchTLSFunction · 0.65
GenerateTLSCertificateFunction · 0.65
SubmitFormMethod · 0.65
SplitMethod · 0.65
MapPrompbMethod · 0.65
signMethod · 0.65
buildCredentialScopeFunction · 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

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…