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

Struct SampleDecoder

expfmt/decode.go:182–187  ·  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

180// SampleDecoder wraps a Decoder to extract samples from the metric families
181// decoded by the wrapped Decoder.
182type SampleDecoder struct {
183 Dec Decoder
184 Opts *DecodeOptions
185
186 f dto.MetricFamily
187}
188
189// Decode calls the Decode method of the wrapped Decoder and then extracts the
190// 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