MCPcopy
hub / github.com/influxdata/telegraf / Len

Method Len

models/buffer.go:66–66  ·  view source on GitHub ↗

Len returns the number of metrics currently in the buffer.

()

Source from the content-addressed store, hash-verified

64type Buffer interface {
65 // Len returns the number of metrics currently in the buffer.
66 Len() int
67
68 // Add adds metrics to the buffer and returns number of dropped metrics.
69 Add(metrics ...telegraf.Metric) int

Callers 15

TestEncodeDecodeMetricFunction · 0.95
BenchmarkEncodeMetricFunction · 0.95
BenchmarkDecodeMetricFunction · 0.95
ParseMethod · 0.95
WriteMethod · 0.95
WriteMethod · 0.95
MdtDialoutMethod · 0.95
readUdevDataFunction · 0.95
nameMethod · 0.95

Implementers 3

DiskBuffermodels/buffer_disk.go
MemoryBuffermodels/buffer_mem.go
discardBuffermodels/buffer_discard.go

Calls

no outgoing calls

Tested by 15

TestEncodeDecodeMetricFunction · 0.76
BenchmarkEncodeMetricFunction · 0.76
BenchmarkDecodeMetricFunction · 0.76
TestStreamsFunction · 0.76
TestMultilineFlushFunction · 0.76