[][src]Struct goose::goose::GooseRequest

pub struct GooseRequest {
    pub path: String,
    pub method: GooseMethod,
    pub response_times: BTreeMap<usize, usize>,
    pub min_response_time: usize,
    pub max_response_time: usize,
    pub total_response_time: usize,
    pub response_time_counter: usize,
    pub status_code_counts: HashMap<u16, usize>,
    pub success_count: usize,
    pub fail_count: usize,
    pub load_test_hash: u64,

Metrics collected about a path-method pair, (for example /index-GET).


path: String

The path for which metrics are being collected.

method: GooseMethod

The method for which metrics are being collected.

response_times: BTreeMap<usize, usize>

Per-response-time counters, tracking how often pages are returned with this response time.

min_response_time: usize

The shortest response time seen so far.

max_response_time: usize

The longest response time seen so far.

total_response_time: usize

Total combined response times seen so far.

response_time_counter: usize

Total number of response times seen so far.

status_code_counts: HashMap<u16, usize>

Per-status-code counters, tracking how often each response code was returned for this request.

success_count: usize

Total number of times this path-method request resulted in a successful (2xx) status code.

fail_count: usize

Total number of times this path-method request resulted in a non-successful (non-2xx) status code.

load_test_hash: u64

Load test hash.


impl GooseRequest[src]

pub fn new(path: &str, method: GooseMethod, load_test_hash: u64) -> Self[src]

Create a new GooseRequest object.

pub fn set_response_time(&mut self, response_time: u64)[src]

Track response time.

pub fn set_status_code(&mut self, status_code: u16)[src]

Increment counter for status code, creating new counter if first time seeing status code.

Trait Implementations

impl Clone for GooseRequest[src]

impl Debug for GooseRequest[src]

impl<'de> Deserialize<'de> for GooseRequest[src]

impl Eq for GooseRequest[src]

impl Ord for GooseRequest[src]

impl PartialEq<GooseRequest> for GooseRequest[src]

impl PartialOrd<GooseRequest> for GooseRequest[src]

impl Serialize for GooseRequest[src]

impl StructuralEq for GooseRequest[src]

impl StructuralPartialEq for GooseRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,