Skip to main content

DiscoveryConfig

Struct DiscoveryConfig 

Source
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: u64

Minimum number of events a cluster must contain to yield a candidate. Filters out one-off shapes that are not worth a signature.

§similarity: f64

Jaccard similarity (0.0-1.0) at or above which a shape merges into an existing cluster. Higher means stricter (more, tighter clusters).

§max_candidates: usize

Maximum number of candidates emitted, highest support first.

§max_predicates: usize

Maximum predicates in a single candidate signature. Kept small so proposals stay readable and reviewable.

§value_markers: bool

Whether to propose equals/in value predicates (offline only; the online path never has values regardless of this flag).

§max_value_cardinality: usize

A 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: f64

Fraction (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

Source§

fn clone(&self) -> DiscoveryConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DiscoveryConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DiscoveryConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.