Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/prometheus/common
/ Len
Method
Len
model/value.go:315–315 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
313
}
314
315
func
(vec Vector) Len() int {
return
len(vec) }
316
func
(vec Vector) Swap(i, j int) { vec[i], vec[j] = vec[j], vec[i] }
317
318
// Less compares first the metrics, then the timestamp.
Callers
4
TestProtoFormatUnchanged
Function · 0.45
readingMetricName
Method · 0.45
startLabelName
Method · 0.45
startTimestamp
Method · 0.45
Calls
no outgoing calls
Tested by
1
TestProtoFormatUnchanged
Function · 0.36