IsFloatHistogram returns true if the histogram is float.
()
| 69 | |
| 70 | // IsFloatHistogram returns true if the histogram is float. |
| 71 | func (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. |