Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
314
func
(vec Vector) Len() int {
return
len(vec) }
315
func
(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
readingMetricName
Method · 0.45
startLabelName
Method · 0.45
startTimestamp
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected