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

Struct SampleDecoder

expfmt/decode.go:175–180  ·  view source on GitHub ↗

SampleDecoder wraps a Decoder to extract samples from the metric families decoded by the wrapped Decoder.

Source from the content-addressed store, hash-verified

173// SampleDecoder wraps a Decoder to extract samples from the metric families
174// decoded by the wrapped Decoder.
175type SampleDecoder struct {
176 Dec Decoder
177 Opts *DecodeOptions
178
179 f dto.MetricFamily
180}
181
182// Decode calls the Decode method of the wrapped Decoder and then extracts the
183// samples from the decoded MetricFamily into the provided model.Vector.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected