pub struct HealingStats {
pub total_attempts: usize,
pub successful: usize,
pub failed: usize,
pub llm_calls: usize,
pub avg_attempts_per_success: f64,
pub issue_counts: HashMap<String, usize>,
}Expand description
Statistics about healing operations.
Fields§
§total_attempts: usizeTotal healing attempts.
successful: usizeSuccessful healings.
failed: usizeFailed healings.
llm_calls: usizeTotal LLM calls for healing.
avg_attempts_per_success: f64Average attempts per successful healing.
issue_counts: HashMap<String, usize>Most common issue types.
Implementations§
Source§impl HealingStats
impl HealingStats
Sourcepub fn record(&mut self, result: &HealingResult)
pub fn record(&mut self, result: &HealingResult)
Record a healing attempt.
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Get success rate.
Trait Implementations§
Source§impl Clone for HealingStats
impl Clone for HealingStats
Source§fn clone(&self) -> HealingStats
fn clone(&self) -> HealingStats
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 moreSource§impl Debug for HealingStats
impl Debug for HealingStats
Source§impl Default for HealingStats
impl Default for HealingStats
Source§fn default() -> HealingStats
fn default() -> HealingStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HealingStats
impl<'de> Deserialize<'de> for HealingStats
Source§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 Freeze for HealingStats
impl RefUnwindSafe for HealingStats
impl Send for HealingStats
impl Sync for HealingStats
impl Unpin for HealingStats
impl UnwindSafe for HealingStats
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