pub struct DowngradeEvent {
pub asset_id: String,
pub old_confidence: f32,
pub new_confidence: f32,
pub failure_rate: f32,
pub window_samples: usize,
pub event_at_ms: i64,
pub revalidation_required: bool,
}Expand description
An observability event emitted whenever an asset is automatically
downgraded by the ConfidenceController.
Fields§
§asset_id: String§old_confidence: f32§new_confidence: f32§failure_rate: f32Observed failure rate inside the rolling window.
window_samples: usizeNumber of outcomes that were inside the window.
event_at_ms: i64§revalidation_required: booltrue when new_confidence fell below min_selectable_confidence,
indicating that re-validation should be triggered.
Trait Implementations§
Source§impl Clone for DowngradeEvent
impl Clone for DowngradeEvent
Source§fn clone(&self) -> DowngradeEvent
fn clone(&self) -> DowngradeEvent
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 DowngradeEvent
impl Debug for DowngradeEvent
Source§impl<'de> Deserialize<'de> for DowngradeEvent
impl<'de> Deserialize<'de> for DowngradeEvent
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 DowngradeEvent
impl RefUnwindSafe for DowngradeEvent
impl Send for DowngradeEvent
impl Sync for DowngradeEvent
impl Unpin for DowngradeEvent
impl UnsafeUnpin for DowngradeEvent
impl UnwindSafe for DowngradeEvent
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