Struct apdex::Apdex[][src]

pub struct Apdex {
    pub threshold: f64,
    pub satisfied: u64,
    pub tolerating: u64,
    pub frustrated: u64,
}

Represents Apdex score after samples were characterize into one of the three groups. When displayed a Uniform Output will be used.

Fields

Satisfied Zone/Tolerating Zone threshold in seconds.

Count of response times characterized as Satisfied.

Count of response times characterized as Tolerating.

Count of response times characterized as Frustrated.

Methods

impl Apdex
[src]

Crate new Apdex value given Satisfied Zone/Tolerating Zone threshold time in seconds.

Crate new Apdex value with samples characterized from provided sample set. Err samples are counted as Frustrated samples.

Crate new Apdex value with samples characterized from provided sample set with assumption of cache presence and given hit rate. Provided samples are interpreted as cache misses and characterized. Err samples are counted as Frustrated samples. Apdex Satisfied group sample count is adjusted by simulated cache hit sample count.

Characterize given sample. Err samples are counted as Frustrated samples.

Returns total number of characterized samples

True if no samples were characterized

True if less than 100 samples were characterized

Calculate Apdex Score value. If no samples were characterized None is returned.

Wraps this object in type implementing Display of the rating (a word) for the score

Returns the rating word: Excellent, Good, Fair, Poor, Unacceptable or NoSample

Returns Color value from yansi crate corresponding to score value

Trait Implementations

impl Debug for Apdex
[src]

Formats the value using the given formatter. Read more

impl Default for Apdex
[src]

Returns the "default value" for a type. Read more

impl Display for Apdex
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Apdex

impl Sync for Apdex