pub struct StatsHistoryBucketResponse {Show 14 fields
pub time: DateTime<Utc>,
pub completed: u64,
pub warning: u64,
pub failed: u64,
pub cancelled: u64,
pub pending: u64,
pub running: u64,
pub retrying: u64,
pub awaiting_approval: u64,
pub sleeping: u64,
pub success_rate_percent: Option<f64>,
pub avg_duration_ms: u64,
pub p95_duration_ms: u64,
pub total_cost_usd: Decimal,
}Expand description
One time bucket in the history response.
Runs are assigned to the bucket of their creation time and counted under their current status. Each status has its own counter, so the counters add up to the number of runs created in the bucket.
§Examples
use ironflow_api::entities::StatsHistoryBucketResponse;Fields§
§time: DateTime<Utc>Start of the time bucket.
completed: u64Number of runs created in this bucket and currently completed.
Strict: runs in the warning state are counted in warning.
warning: u64Number of runs created in this bucket and currently in warning.
failed: u64Number of runs created in this bucket and currently failed.
cancelled: u64Number of runs created in this bucket and currently cancelled.
pending: u64Number of runs created in this bucket and currently pending.
running: u64Number of runs created in this bucket and currently running.
retrying: u64Number of runs created in this bucket and currently retrying.
awaiting_approval: u64Number of runs created in this bucket and currently awaiting approval.
sleeping: u64Number of runs created in this bucket and currently sleeping.
success_rate_percent: Option<f64>Success rate: (completed + warning) / (completed + warning + failed),
as a percentage. null when the bucket has no completed, warning or
failed run.
avg_duration_ms: u64Average duration in milliseconds.
p95_duration_ms: u6495th percentile duration in milliseconds.
total_cost_usd: DecimalTotal cost in USD.