pub struct DiscoveryConfig {
pub min_support: u64,
pub similarity: f64,
pub max_candidates: usize,
pub max_predicates: usize,
pub value_markers: bool,
pub max_value_cardinality: usize,
pub core_presence: f64,
}Expand description
Tunables for a discovery run. Default is a sensible starting point;
the CLI exposes each as a flag.
Fields§
§min_support: u64Minimum number of events a cluster must contain to yield a candidate. Filters out one-off shapes that are not worth a signature.
similarity: f64Jaccard similarity (0.0-1.0) at or above which a shape merges into an existing cluster. Higher means stricter (more, tighter clusters).
max_candidates: usizeMaximum number of candidates emitted, highest support first.
max_predicates: usizeMaximum predicates in a single candidate signature. Kept small so proposals stay readable and reviewable.
value_markers: boolWhether to propose equals/in value predicates (offline only; the
online path never has values regardless of this flag).
max_value_cardinality: usizeA field is only a value-marker candidate when its distinct string values
within a cluster do not exceed this cap (a low-cardinality constant like
vendor or Channel, not a free-form field).
core_presence: f64Fraction (0.0-1.0) of a cluster’s events a field must appear in to be a “core” field eligible as a predicate.
Trait Implementations§
Source§impl Clone for DiscoveryConfig
impl Clone for DiscoveryConfig
Source§fn clone(&self) -> DiscoveryConfig
fn clone(&self) -> DiscoveryConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more