MCPcopy Index your code
hub / github.com/cortexproject/cortex / scalarToPromQLVector

Function scalarToPromQLVector

pkg/ruler/frontend_decoder.go:153–159  ·  view source on GitHub ↗
(s model.Scalar)

Source from the content-addressed store, hash-verified

151}
152
153func scalarToPromQLVector(s model.Scalar) promql.Vector {
154 return promql.Vector{promql.Sample{
155 T: int64(s.Timestamp),
156 F: float64(s.Value),
157 Metric: labels.Labels{},
158 }}
159}

Callers 2

DecodeMethod · 0.85
DecodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected