Struct swanling::metrics::SwanlingTaskMetric [−][src]
pub struct SwanlingTaskMetric { 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 SwanlingAttack
.task_sets
, indicating which task set this is.
task_index: usize
An index into SwanlingTaskSet
.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 SwanlingUser 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 SwanlingTaskMetric
impl Send for SwanlingTaskMetric
impl Sync for SwanlingTaskMetric
impl Unpin for SwanlingTaskMetric
impl UnwindSafe for SwanlingTaskMetric
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V