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

Method Len

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

Source from the content-addressed store, hash-verified

346type Matrix []*SampleStream
347
348func (m Matrix) Len() int { return len(m) }
349func (m Matrix) Less(i, j int) bool { return m[i].Metric.Before(m[j].Metric) }
350func (m Matrix) Swap(i, j int) { m[i], m[j] = m[j], m[i] }
351

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected