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

Method Len

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

Source from the content-addressed store, hash-verified

136type Samples []*Sample
137
138func (s Samples) Len() int {
139 return len(s)
140}
141
142// Less compares first the metrics, then the timestamp.
143func (s Samples) Less(i, j int) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected