pub struct HistoryMetrics {
pub total_executions: u32,
pub successful_executions: u32,
pub failed_executions: u32,
pub total_tokens_input: u64,
pub total_tokens_output: u64,
pub total_fixups: u32,
pub first_execution: Option<DateTime<Utc>>,
pub last_execution: Option<DateTime<Utc>>,
}Expand description
Aggregated metrics for spec history
Fields§
§total_executions: u32Total number of phase executions
successful_executions: u32Number of successful executions
failed_executions: u32Number of failed executions
total_tokens_input: u64Total LLM tokens consumed (input)
total_tokens_output: u64Total LLM tokens consumed (output)
total_fixups: u32Total fixups applied across all executions
first_execution: Option<DateTime<Utc>>First execution timestamp (if any)
last_execution: Option<DateTime<Utc>>Last execution timestamp (if any)
Trait Implementations§
Source§impl Clone for HistoryMetrics
impl Clone for HistoryMetrics
Source§fn clone(&self) -> HistoryMetrics
fn clone(&self) -> HistoryMetrics
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 HistoryMetrics
impl Debug for HistoryMetrics
Source§impl<'de> Deserialize<'de> for HistoryMetrics
impl<'de> Deserialize<'de> for HistoryMetrics
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 HistoryMetrics
impl RefUnwindSafe for HistoryMetrics
impl Send for HistoryMetrics
impl Sync for HistoryMetrics
impl Unpin for HistoryMetrics
impl UnsafeUnpin for HistoryMetrics
impl UnwindSafe for HistoryMetrics
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