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

Struct SampleDecoder

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

252// SampleDecoder wraps a Decoder to extract samples from the metric families
253// decoded by the wrapped Decoder.
254type SampleDecoder struct {
255 Dec Decoder
256 Opts *DecodeOptions
257
258 f dto.MetricFamily
259}
260
261// Decode calls the Decode method of the wrapped Decoder and then extracts the
262// 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