Struct goose::metrics::GooseTaskMetric [−][src]
pub struct GooseTaskMetric {
pub elapsed: u64,
pub taskset_index: usize,
pub task_index: usize,
pub name: String,
pub run_time: u64,
pub success: bool,
pub user: usize,
}
Expand description
The per-task metrics collected each time a task is invoked.
Fields
elapsed: u64
How many milliseconds the load test has been running.
taskset_index: usize
An index into GooseAttack
.task_sets
, indicating which task set this is.
task_index: usize
An index into GooseTaskSet
.task
, indicating which task this is.
name: String
The optional name of the task.
run_time: u64
How long task ran.
success: bool
Whether or not the request was successful.
user: usize
Which GooseUser thread processed the request.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for GooseTaskMetric
impl Send for GooseTaskMetric
impl Sync for GooseTaskMetric
impl Unpin for GooseTaskMetric
impl UnwindSafe for GooseTaskMetric
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more