MCPcopy Create free account
hub / github.com/prometheus/common / Len

Method Len

model/value.go:314–314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

312}
313
314func (vec Vector) Len() int { return len(vec) }
315func (vec Vector) Swap(i, j int) { vec[i], vec[j] = vec[j], vec[i] }
316
317// Less compares first the metrics, then the timestamp.

Callers 3

readingMetricNameMethod · 0.45
startLabelNameMethod · 0.45
startTimestampMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected