pub struct CompiledEntry {Show 29 fields
pub id: Option<String>,
pub signal_type: String,
pub name: 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 clock_group_is_auto: bool,
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,
pub while_clause: Option<WhileClause>,
pub delay_clause: Option<DelayClause>,
pub after_ref: Option<String>,
}Expand description
A single scenario entry with after: resolved and clock_group
finalized.
The after: Option<AfterClause> field from ExpandedEntry is gone
— the causal information it carried has been folded into
Self::phase_offset (computed crossing time plus any user-provided
offset plus the optional delay) and Self::clock_group (either the
user’s explicit value or an auto-assigned chain_{lowest_lex_id}).
All other fields are copied verbatim from ExpandedEntry; this is a
pure enrichment pass, not a structural rewrite.
Fields§
§id: Option<String>Signal identifier, identical to ExpandedEntry::id.
signal_type: StringSignal type: "metrics", "logs", "histogram", or "summary".
name: StringMetric or scenario name.
rate: f64Event rate in events per second.
duration: Option<String>Total run duration (e.g. "30s", "5m").
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, already composed through the full precedence chain.
dynamic_labels: Option<Vec<DynamicLabelConfig>>Dynamic (rotating) label configurations.
encoder: EncoderConfigEncoder configuration.
sink: SinkConfigSink configuration.
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. Equals user_phase_offset + Σ crossing_time + Σ delay
when the entry participated in an after: chain; otherwise the
user’s original value (or None).
clock_group: Option<String>Clock group — either the user’s explicit value, or an
auto-assigned chain_{lowest_lex_id} for every member of a
dependency chain with no explicit group.
clock_group_is_auto: boolProvenance of Self::clock_group.
true exactly when the compiler synthesized the
chain_{lowest_lex_id} name for a multi-node after: component
that had no user-supplied value. false when the value was
adopted from an explicit user assignment (including explicit
values that happen to start with chain_). Always false when
Self::clock_group is None.
Downstream display code uses this to decide whether to suffix the
rendered value with (auto). The chain_ prefix alone is not a
reliable proxy because users are free to write
clock_group: chain_alpha themselves.
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.
while_clause: Option<WhileClause>Continuous lifecycle gate. Does not contribute to phase_offset.
delay_clause: Option<DelayClause>§after_ref: Option<String>Upstream id this entry’s after: resolved against, when one was
present. Folded into phase_offset for runtime; preserved here so
--dry-run can label it on entries that also carry a while: against
a different upstream.
Trait Implementations§
Source§impl Clone for CompiledEntry
impl Clone for CompiledEntry
Source§fn clone(&self) -> CompiledEntry
fn clone(&self) -> CompiledEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more