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.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.