Struct JumpEventResult
#[non_exhaustive]pub struct JumpEventResult {
pub primary_event: Option<JumpEvent>,
pub latest_event: Option<JumpEvent>,
pub events: Vec<JumpEvent>,
pub near_threshold_scores: Vec<CoefficientScore>,
pub raw_event_count: usize,
pub consolidated_event_count: usize,
pub max_test_statistic: f64,
pub max_threshold_ratio: f64,
pub robust_threshold: bool,
}Expand description
Productized jump and stress event result.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.primary_event: Option<JumpEvent>Strongest event by warning level and threshold ratio. None when no
coefficient crossed the detection threshold but near_threshold_scores
is non-empty (the result is surfaced purely for sub-threshold ranking).
latest_event: Option<JumpEvent>Most recent event in the input window. None in the same
score-only case as primary_event.
events: Vec<JumpEvent>Consolidated events ordered by observation index. May be empty when the
result carries only near_threshold_scores.
near_threshold_scores: Vec<CoefficientScore>Sub-threshold (“near-threshold”) coefficient scores surfaced when
JumpEventConfig::near_threshold is set; empty otherwise. Each level’s
scores are ordered by descending threshold_ratio and the per-level
groups are appended in level order, so the Vec is not globally
ranked — re-sort if a global top-N is needed.
raw_event_count: usizeRaw scale-level threshold breaches before consolidation.
consolidated_event_count: usizeConsolidated event count.
max_test_statistic: f64Maximum test statistic observed across crossing events and any surfaced near-threshold scores (so it is non-zero even for a score-only result).
max_threshold_ratio: f64Maximum threshold ratio observed across consolidated events and any surfaced near-threshold scores.
robust_threshold: boolWhether MAD-based robust thresholding was used.
Trait Implementations§
§impl Clone for JumpEventResult
impl Clone for JumpEventResult
§fn clone(&self) -> JumpEventResult
fn clone(&self) -> JumpEventResult
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for JumpEventResult
impl Debug for JumpEventResult
§impl PartialEq for JumpEventResult
impl PartialEq for JumpEventResult
impl StructuralPartialEq for JumpEventResult
Auto Trait Implementations§
impl Freeze for JumpEventResult
impl RefUnwindSafe for JumpEventResult
impl Send for JumpEventResult
impl Sync for JumpEventResult
impl Unpin for JumpEventResult
impl UnwindSafe for JumpEventResult
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<T> IntoEither for T
impl<T> IntoEither for T
§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.