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

TypeAlias Vector

model/value.go:305–305  ·  view source on GitHub ↗

Vector is basically only an alias for Samples, but the contract is that in a Vector, all Samples have the same timestamp.

Source from the content-addressed store, hash-verified

303// Vector is basically only an alias for Samples, but the
304// contract is that in a Vector, all Samples have the same timestamp.
305type Vector []*Sample
306
307func (vec Vector) String() string {
308 entries := make([]string, len(vec))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected