//! Statistics DTOs.
userust_decimal::Decimal;useserde::Serialize;/// Aggregate statistics response.
////// Computed from all runs in the store.
////// # Examples
////// ```
/// use ironflow_api::entities::StatsResponse;
/// ```
#[cfg_attr(feature ="openapi",derive(utoipa::ToSchema))]#[derive(Debug, Serialize)]pubstructStatsResponse{/// Total number of runs.
pubtotal_runs:u64,
/// Number of completed runs.
pubcompleted_runs:u64,
/// Number of failed runs.
pubfailed_runs:u64,
/// Number of cancelled runs.
pubcancelled_runs:u64,
/// Number of pending or running runs.
pubactive_runs:u64,
/// Success rate: completed / (completed + failed), as a percentage.
pubsuccess_rate_percent:f64,
/// Aggregated cost across all runs in USD.
pubtotal_cost_usd: Decimal,
/// Aggregated duration across all runs in milliseconds.
pubtotal_duration_ms:u64,
}