pub struct StatsResponse {
pub total_runs: u64,
pub completed_runs: u64,
pub failed_runs: u64,
pub cancelled_runs: u64,
pub active_runs: u64,
pub success_rate_percent: f64,
pub total_cost_usd: Decimal,
pub total_duration_ms: u64,
}Expand description
Aggregate statistics response.
Computed from all runs in the store.
§Examples
use ironflow_api::entities::StatsResponse;Fields§
§total_runs: u64Total number of runs.
completed_runs: u64Number of completed runs.
failed_runs: u64Number of failed runs.
cancelled_runs: u64Number of cancelled runs.
active_runs: u64Number of pending or running runs.
success_rate_percent: f64Success rate: completed / (completed + failed), as a percentage.
total_cost_usd: DecimalAggregated cost across all runs in USD.
total_duration_ms: u64Aggregated duration across all runs in milliseconds.
Trait Implementations§
Source§impl Debug for StatsResponse
impl Debug for StatsResponse
Auto Trait Implementations§
impl Freeze for StatsResponse
impl RefUnwindSafe for StatsResponse
impl Send for StatsResponse
impl Sync for StatsResponse
impl Unpin for StatsResponse
impl UnsafeUnpin for StatsResponse
impl UnwindSafe for StatsResponse
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