MCPcopy
hub / github.com/prometheus/prometheus / IsFloatHistogram

Method IsFloatHistogram

prompb/codec.go:71–74  ·  view source on GitHub ↗

IsFloatHistogram returns true if the histogram is float.

()

Source from the content-addressed store, hash-verified

69
70// IsFloatHistogram returns true if the histogram is float.
71func (h Histogram) IsFloatHistogram() bool {
72 _, ok := h.GetCount().(*Histogram_CountFloat)
73 return ok
74}
75
76// ToIntHistogram returns integer Prometheus histogram from the remote implementation
77// of integer histogram. If it's a float histogram, the method returns nil.

Callers 13

ToIntHistogramMethod · 0.95
ToFloatHistogramMethod · 0.95
printV1Function · 0.45
printV2Function · 0.45
setCurrentHistogramMethod · 0.45
appendV1HistogramsMethod · 0.45
appendV2Method · 0.45
StoreMethod · 0.45
v2RequestToWriteRequestFunction · 0.45

Calls 1

GetCountMethod · 0.95

Tested by 5

StoreMethod · 0.36
v2RequestToWriteRequestFunction · 0.36