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

Struct DecodeOptions

expfmt/decode.go:36–39  ·  view source on GitHub ↗

DecodeOptions contains options used by the Decoder and in sample extraction.

Source from the content-addressed store, hash-verified

34
35// DecodeOptions contains options used by the Decoder and in sample extraction.
36type DecodeOptions struct {
37 // Timestamp is added to each value from the stream that has no explicit timestamp set.
38 Timestamp model.Time
39}
40
41// ResponseFormat extracts the correct format from a HTTP response header.
42// If no matching format can be found FormatUnknown is returned.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected