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

Struct Scalar

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

Scalar is a scalar value evaluated at the set timestamp.

Source from the content-addressed store, hash-verified

248
249// Scalar is a scalar value evaluated at the set timestamp.
250type Scalar struct {
251 Value SampleValue `json:"value"`
252 Timestamp Time `json:"timestamp"`
253}
254
255func (s Scalar) String() string {
256 return fmt.Sprintf("scalar: %v @[%v]", s.Value, s.Timestamp)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected