pub struct MeasurementConfig {
pub name: String,
pub epoch: Option<String>,
pub min_relative_deviation: Option<f64>,
pub dispersion_method: String,
pub min_measurements: Option<u16>,
pub aggregate_by: Option<String>,
pub sigma: Option<f64>,
pub unit: Option<String>,
pub from_parent_fallback: bool,
}Expand description
Configuration for a specific measurement
Fields§
§name: StringMeasurement name
epoch: Option<String>Epoch (8-char hex string)
min_relative_deviation: Option<f64>Minimum relative deviation threshold (%)
dispersion_method: StringDispersion method (stddev or mad)
min_measurements: Option<u16>Minimum measurements required
aggregate_by: Option<String>Aggregation function
sigma: Option<f64>Sigma threshold
unit: Option<String>Measurement unit
from_parent_fallback: boolWhether this is from parent table fallback (vs measurement-specific)
Trait Implementations§
Source§impl Debug for MeasurementConfig
impl Debug for MeasurementConfig
Source§impl<'de> Deserialize<'de> for MeasurementConfig
impl<'de> Deserialize<'de> for MeasurementConfig
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 MeasurementConfig
impl RefUnwindSafe for MeasurementConfig
impl Send for MeasurementConfig
impl Sync for MeasurementConfig
impl Unpin for MeasurementConfig
impl UnwindSafe for MeasurementConfig
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<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
Source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
Source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
Source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more