pub enum ChangeClassification {
Noise,
Suspected,
Probable,
}Expand description
Coarse-grained change-feed classification.
The bands are the policy surface — the
detector bins each target into exactly one band
and emits an event when the per-target band is
Suspected or Probable. The Noise band is
the “no event” default.
Variants§
Noise
Per-target score below the noise_ceiling.
No event is emitted; the delta is logged.
Suspected
Per-target score between noise_ceiling
and probable_floor. An advisory event is
emitted so operators can annotate the target.
Probable
Per-target score at or above
probable_floor. A runbook event is emitted
and the runbook diagnostics surface is
triggered.
Implementations§
Source§impl ChangeClassification
impl ChangeClassification
Sourcepub const fn label(self) -> &'static str
pub const fn label(self) -> &'static str
Stable lower-case wire label.
§Example
use stygian_charon::change_feed::ChangeClassification;
assert_eq!(ChangeClassification::Noise.label(), "noise");
assert_eq!(ChangeClassification::Suspected.label(), "suspected");
assert_eq!(ChangeClassification::Probable.label(), "probable");Sourcepub const fn emits_event(self) -> bool
pub const fn emits_event(self) -> bool
true for the two bands that emit events.
Trait Implementations§
Source§impl Clone for ChangeClassification
impl Clone for ChangeClassification
Source§fn clone(&self) -> ChangeClassification
fn clone(&self) -> ChangeClassification
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 ChangeClassification
impl Debug for ChangeClassification
Source§impl<'de> Deserialize<'de> for ChangeClassification
impl<'de> Deserialize<'de> for ChangeClassification
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
Source§impl Hash for ChangeClassification
impl Hash for ChangeClassification
Source§impl Ord for ChangeClassification
impl Ord for ChangeClassification
Source§fn cmp(&self, other: &ChangeClassification) -> Ordering
fn cmp(&self, other: &ChangeClassification) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChangeClassification
impl PartialEq for ChangeClassification
Source§impl PartialOrd for ChangeClassification
impl PartialOrd for ChangeClassification
Source§impl Serialize for ChangeClassification
impl Serialize for ChangeClassification
impl Copy for ChangeClassification
impl Eq for ChangeClassification
impl StructuralPartialEq for ChangeClassification
Auto Trait Implementations§
impl Freeze for ChangeClassification
impl RefUnwindSafe for ChangeClassification
impl Send for ChangeClassification
impl Sync for ChangeClassification
impl Unpin for ChangeClassification
impl UnsafeUnpin for ChangeClassification
impl UnwindSafe for ChangeClassification
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.