pub struct ExecutionMetrics {
pub agent_id: String,
pub start_time: Instant,
pub end_time: Option<Instant>,
pub findings_count: usize,
pub severity_distribution: HashMap<String, usize>,
pub success: bool,
pub error: Option<String>,
}Expand description
Metrics for a single agent execution
Fields§
§agent_id: StringAgent ID
start_time: InstantExecution start time
end_time: Option<Instant>Execution end time (if completed)
findings_count: usizeNumber of findings
severity_distribution: HashMap<String, usize>Severity distribution of findings
success: boolWhether execution succeeded
error: Option<String>Error message if failed
Implementations§
Source§impl ExecutionMetrics
impl ExecutionMetrics
Sourcepub fn duration_ms(&self) -> u64
pub fn duration_ms(&self) -> u64
Get execution duration in milliseconds
Trait Implementations§
Source§impl Clone for ExecutionMetrics
impl Clone for ExecutionMetrics
Source§fn clone(&self) -> ExecutionMetrics
fn clone(&self) -> ExecutionMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExecutionMetrics
impl RefUnwindSafe for ExecutionMetrics
impl Send for ExecutionMetrics
impl Sync for ExecutionMetrics
impl Unpin for ExecutionMetrics
impl UnwindSafe for ExecutionMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more