pub struct NormalizedEntry {Show 30 fields
pub id: Option<String>,
pub signal_type: String,
pub name: Option<String>,
pub rate: f64,
pub duration: Option<String>,
pub generator: Option<GeneratorConfig>,
pub log_generator: Option<LogGeneratorConfig>,
pub labels: Option<BTreeMap<String, String>>,
pub dynamic_labels: Option<Vec<DynamicLabelConfig>>,
pub encoder: EncoderConfig,
pub sink: SinkConfig,
pub jitter: Option<f64>,
pub jitter_seed: Option<u64>,
pub gaps: Option<GapConfig>,
pub bursts: Option<BurstConfig>,
pub cardinality_spikes: Option<Vec<CardinalitySpikeConfig>>,
pub phase_offset: Option<String>,
pub clock_group: Option<String>,
pub after: Option<AfterClause>,
pub while_clause: Option<WhileClause>,
pub delay_clause: Option<DelayClause>,
pub pack: Option<String>,
pub overrides: Option<BTreeMap<String, MetricOverride>>,
pub distribution: Option<DistributionConfig>,
pub buckets: Option<Vec<f64>>,
pub quantiles: Option<Vec<f64>>,
pub observations_per_tick: Option<u32>,
pub mean_shift_per_sec: Option<f64>,
pub seed: Option<u64>,
pub on_sink_error: OnSinkError,
}Expand description
A single scenario entry with all defaults resolved.
Fields that could inherit from defaults: are now guaranteed to hold a
concrete value (rate, encoder, sink). Fields that do not inherit
(pack references, histogram/summary configuration, after clauses)
are carried through unchanged.
This type is deliberately close in shape to Entry so that later
compilation phases can walk the same field set without a translation
step. The invariants above make the “missing rate/encoder/sink” states
unrepresentable after normalization.
Fields§
§id: Option<String>Unique identifier for causal dependency references (after.ref).
signal_type: StringSignal type: "metrics", "logs", "histogram", or "summary".
name: Option<String>Metric or scenario name. None for pack-backed entries.
rate: f64Event rate in events per second. Always set after normalization.
duration: Option<String>Total run duration (e.g. "30s", "5m"). None means “run until
stopped” and is preserved through normalization.
generator: Option<GeneratorConfig>Value generator configuration (metrics signals only).
log_generator: Option<LogGeneratorConfig>Log generator configuration (logs signals only).
labels: Option<BTreeMap<String, String>>Static labels attached to every emitted event.
For inline entries this is the merged map of defaults.labels
and the entry’s own labels, with entry keys winning on conflict.
For pack entries this is the entry’s own labels unchanged
(possibly None). The file-level defaults.labels is NOT merged in
— it is carried separately on NormalizedFile::defaults_labels so
pack expansion can apply it at the correct precedence level. See the
module docs for the full rationale.
dynamic_labels: Option<Vec<DynamicLabelConfig>>Dynamic (rotating) label configurations.
encoder: EncoderConfigEncoder configuration. Always set after normalization.
sink: SinkConfigSink configuration. Always set after normalization.
jitter: Option<f64>Jitter amplitude applied to generated values.
jitter_seed: Option<u64>Deterministic seed for jitter RNG.
gaps: Option<GapConfig>Recurring silent-period configuration.
bursts: Option<BurstConfig>Recurring high-rate burst configuration.
cardinality_spikes: Option<Vec<CardinalitySpikeConfig>>Cardinality spike configurations.
phase_offset: Option<String>Phase offset for staggered start within a clock group.
clock_group: Option<String>Clock group for coordinated timing across entries.
after: Option<AfterClause>Causal dependency on another signal’s value.
while_clause: Option<WhileClause>Continuous lifecycle gate on another signal’s value.
delay_clause: Option<DelayClause>Open / close debounce windows for while_clause transitions.
pack: Option<String>Pack name or file path. Mutually exclusive with generator.
overrides: Option<BTreeMap<String, MetricOverride>>Per-metric overrides within the referenced pack.
distribution: Option<DistributionConfig>Distribution model for histogram or summary observations.
buckets: Option<Vec<f64>>Histogram bucket boundaries (histogram only).
quantiles: Option<Vec<f64>>Summary quantile boundaries (summary only).
observations_per_tick: Option<u32>Number of observations sampled per tick.
mean_shift_per_sec: Option<f64>Linear drift applied to the distribution mean each second.
seed: Option<u64>Deterministic seed for histogram/summary sampling.
on_sink_error: OnSinkErrorResolved sink-error policy.
Trait Implementations§
Source§impl Clone for NormalizedEntry
impl Clone for NormalizedEntry
Source§fn clone(&self) -> NormalizedEntry
fn clone(&self) -> NormalizedEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more