Struct prometheus_utils::Sample [−][src]
pub struct Sample<T: Ord + Zero + Copy> { pub dropped: usize, pub wraps: usize, pub p50: T, pub p75: T, pub p90: T, pub p95: T, pub p99: T, pub p99p9: T, pub p99p995: T, pub max: T, }
Expand description
A sample of the state in Observations
.
Fields
dropped: usize
Number of observations dropped due to lock contention
wraps: usize
Number of times the observation window wrapped around
p50: T
50th percentile observation
p75: T
75th percentile observation
p90: T
90th percentile observation
p95: T
95th percentile observation
p99: T
99th percentile observation
p99p9: T
99.9th percentile observation
p99p995: T
99.995th percentile observation
max: T
Maximum observation
Implementations
Returns each member of the struct along with its TimingBucket
label. Each percentile is given as an i64.