pub enum MetricRole {
GatingSteady,
GatingColdStart,
Diagnostic,
Correctness,
}Expand description
Regression role carried by an explicit numeric metric.
Legacy metrics and provider events without a role are diagnostics. This keeps existing JSONL artifacts readable without accidentally promoting incidental counters into release gates.
§Examples
use ailloli_ui_bench::MetricRole;
assert_eq!(MetricRole::default(), MetricRole::Diagnostic);Variants§
GatingSteady
Requires at least 30 measured samples and gates median plus p95.
GatingColdStart
Requires at least five independent measured processes and gates median.
Diagnostic
Informational metric requiring only one sample and never blocking.
Correctness
Correctness counter whose candidate samples must all equal zero.
Trait Implementations§
Source§impl Clone for MetricRole
impl Clone for MetricRole
Source§fn clone(&self) -> MetricRole
fn clone(&self) -> MetricRole
Returns a copy 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 MetricRole
impl Debug for MetricRole
Source§impl Default for MetricRole
impl Default for MetricRole
Source§fn default() -> MetricRole
fn default() -> MetricRole
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetricRole
impl<'de> Deserialize<'de> for MetricRole
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 PartialEq for MetricRole
impl PartialEq for MetricRole
Source§impl Serialize for MetricRole
impl Serialize for MetricRole
impl Copy for MetricRole
impl Eq for MetricRole
impl StructuralPartialEq for MetricRole
Auto Trait Implementations§
impl Freeze for MetricRole
impl RefUnwindSafe for MetricRole
impl Send for MetricRole
impl Sync for MetricRole
impl Unpin for MetricRole
impl UnwindSafe for MetricRole
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