pub struct LoweringConfig {
pub value_to_microsecond_scale: u32,
pub latency_clamp_us: u32,
pub window_size_ns: u64,
}Expand description
Parameters for the deterministic event-lowering rule.
WHY: Each panel-locked S-REAL.1 dataset uses a slightly different cell-
value scale (TADBench latency_p50_ms ≈ 50.0; AIOps KPI ≈ 0.04). We
expose value_to_microsecond_scale so the audit report can record the
scale-factor per dataset rather than baking a single magic number into
the lowering. The default value_to_microsecond_scale = 1000.0 treats
cell values as milliseconds and produces microseconds for the
TraceEvent.latency_us field.
Fields§
§value_to_microsecond_scale: u32latency_us = clamp(value * scale, 0, latency_clamp_us). The
audit’s schema_map.toml records this value.
latency_clamp_us: u32Upper bound for latency_us. Matches the contract’s
latency_clamp_ms * 1000. Default 32,767,000 us (32.767 seconds).
window_size_ns: u64Window size in nanoseconds. Default 1_000_000_000 ns = 1 s, which
matches Contract::canonical().window_size_ms = 1000. The lowering
emits ts_ns = window_index as u64 * window_size_ns.
Trait Implementations§
Source§impl Clone for LoweringConfig
impl Clone for LoweringConfig
Source§fn clone(&self) -> LoweringConfig
fn clone(&self) -> LoweringConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LoweringConfig
impl Debug for LoweringConfig
Source§impl Default for LoweringConfig
impl Default for LoweringConfig
Source§impl PartialEq for LoweringConfig
impl PartialEq for LoweringConfig
Source§fn eq(&self, other: &LoweringConfig) -> bool
fn eq(&self, other: &LoweringConfig) -> bool
self and other values to be equal, and is used by ==.