pub enum Alert {
BudgetWarning {
current: f64,
budget: f64,
pct: f64,
},
UsageSpike {
day: String,
tokens: u64,
avg: u64,
},
ProjectedOverage {
forecast: f64,
budget: f64,
overage: f64,
},
}Expand description
Alert types for budget and anomaly detection
Variants§
BudgetWarning
Budget warning (current cost approaching budget)
UsageSpike
Usage spike (day with tokens > 2x average)
ProjectedOverage
Projected budget overage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Alert
impl RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
impl UnsafeUnpin for Alert
impl UnwindSafe for Alert
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