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

Struct Scalar

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

Scalar is a scalar value evaluated at the set timestamp.

Source from the content-addressed store, hash-verified

247
248// Scalar is a scalar value evaluated at the set timestamp.
249type Scalar struct {
250 Value SampleValue `json:"value"`
251 Timestamp Time `json:"timestamp"`
252}
253
254func (s Scalar) String() string {
255 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