pub struct MetricObservation {
pub name: String,
pub current: f64,
pub baseline: f64,
pub unit: Option<String>,
pub window_secs: Option<u64>,
}Expand description
A single metric observation for behavioral comparison (Layer 3).
Fields§
§name: StringMetric name (e.g. “http_request_duration_p99”, “error_rate_5xx”).
current: f64Current (post-deploy) value.
baseline: f64Baseline (pre-deploy) value.
unit: Option<String>Unit of measurement (e.g. “ms”, “percent”, “count/sec”).
window_secs: Option<u64>Observation window in seconds.
Trait Implementations§
Source§impl Clone for MetricObservation
impl Clone for MetricObservation
Source§fn clone(&self) -> MetricObservation
fn clone(&self) -> MetricObservation
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 MetricObservation
impl Debug for MetricObservation
Source§impl<'de> Deserialize<'de> for MetricObservation
impl<'de> Deserialize<'de> for MetricObservation
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 MetricObservation
impl PartialEq for MetricObservation
Source§impl Serialize for MetricObservation
impl Serialize for MetricObservation
impl StructuralPartialEq for MetricObservation
Auto Trait Implementations§
impl Freeze for MetricObservation
impl RefUnwindSafe for MetricObservation
impl Send for MetricObservation
impl Sync for MetricObservation
impl Unpin for MetricObservation
impl UnsafeUnpin for MetricObservation
impl UnwindSafe for MetricObservation
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