pub struct TrendAnalysis {
pub metric: String,
pub slope_per_run: f64,
pub intercept: f64,
pub r_squared: f64,
pub drift: DriftClass,
pub runs_to_breach: Option<u32>,
pub current_headroom_pct: f64,
pub sample_count: usize,
}Expand description
Result of trend analysis for a single metric.
Fields§
§metric: StringMetric name (e.g., “wall_ms”).
slope_per_run: f64Slope per run (change in metric value per run index).
intercept: f64Intercept of the linear regression line.
r_squared: f64R-squared value (0.0-1.0) indicating fit quality.
drift: DriftClassDrift classification.
runs_to_breach: Option<u32>Estimated runs until budget threshold is exceeded.
None if the metric is not trending toward the threshold.
current_headroom_pct: f64Current headroom as a percentage (how far current value is from threshold). Positive means below threshold, negative means already exceeded.
sample_count: usizeNumber of data points used.
Trait Implementations§
Source§impl Clone for TrendAnalysis
impl Clone for TrendAnalysis
Source§fn clone(&self) -> TrendAnalysis
fn clone(&self) -> TrendAnalysis
Returns a duplicate of the value. Read more
1.0.0 · 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 TrendAnalysis
impl Debug for TrendAnalysis
Source§impl<'de> Deserialize<'de> for TrendAnalysis
impl<'de> Deserialize<'de> for TrendAnalysis
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TrendAnalysis
impl RefUnwindSafe for TrendAnalysis
impl Send for TrendAnalysis
impl Sync for TrendAnalysis
impl Unpin for TrendAnalysis
impl UnsafeUnpin for TrendAnalysis
impl UnwindSafe for TrendAnalysis
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