pub struct AnomalyReport {
pub agent: String,
pub since: Option<Date>,
pub requests_analyzed: u64,
pub total_tokens: u64,
pub total_cost_usd: f64,
pub has_unpriced: bool,
pub concentration: Vec<ConcentrationBucket>,
pub heaviest: Vec<HeavyRequest>,
pub retry_storms: Vec<RetryStorm>,
pub storm_min_requests: u64,
pub storm_max_gap_seconds: i64,
}Expand description
Retry-storm + fat-tail findings over a set of deduplicated requests.
Fields§
§agent: String§since: Option<Date>§requests_analyzed: u64Deduplicated requests considered (the denominator for every share).
total_tokens: u64§total_cost_usd: f64Total priced cost across analyzed requests; a lower bound when
has_unpriced is true.
has_unpriced: boolAt least one analyzed request had no price (model unknown / not in the snapshot) — cost figures are lower bounds (§8.5/§8.7).
concentration: Vec<ConcentrationBucket>Top-fraction concentration, ascending by request_fraction.
heaviest: Vec<HeavyRequest>Heaviest individual requests, by tokens desc (then cost, ts, ids).
retry_storms: Vec<RetryStorm>Detected retry storms, by total tokens desc (then start, session).
storm_min_requests: u64Heuristic params, echoed so the output is self-describing.
storm_max_gap_seconds: i64Trait Implementations§
Source§impl Clone for AnomalyReport
impl Clone for AnomalyReport
Source§fn clone(&self) -> AnomalyReport
fn clone(&self) -> AnomalyReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AnomalyReport
impl Debug for AnomalyReport
Auto Trait Implementations§
impl Freeze for AnomalyReport
impl RefUnwindSafe for AnomalyReport
impl Send for AnomalyReport
impl Sync for AnomalyReport
impl Unpin for AnomalyReport
impl UnsafeUnpin for AnomalyReport
impl UnwindSafe for AnomalyReport
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