Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Histogram ¶
type Histogram struct { Count int64 `json:"count"` Sum float64 `json:"sum"` CountPerBucket []int64 `json:"count_per_bucket"` Bounds []float64 `json:"bounds"` }
Histogram is a simple implementation of histogram expvar.Var.
`Bounds` specifies the histogram buckets as follows (length = len(bounds)):
(-inf, Bounds[i]) for i = 0 [Bounds[i-1], Bounds[i]) for 0 < i < length [Bounds[i-1], +inf) for i = length
Click to show internal directories.
Click to hide internal directories.