pub struct DiscoveryCandidate {
pub name: String,
pub specificity: u32,
pub predicates: Vec<SchemaPredicate>,
pub support: u64,
pub coverage_of_unknown: f64,
pub sample_field_sets: Vec<Vec<String>>,
pub overlap_warnings: Vec<String>,
pub source: CandidateSource,
}Expand description
One proposed signature plus the evidence behind it.
Fields§
§name: StringPlaceholder schema name (a human should rename it).
specificity: u32Suggested tie-break specificity, above generic_json and below the
strong built-ins.
predicates: Vec<SchemaPredicate>The conjunction of predicates that recognizes the cluster.
support: u64Events in the cluster this candidate was mined from.
coverage_of_unknown: f64support as a fraction of all mined events (0.0-1.0).
sample_field_sets: Vec<Vec<String>>A few representative (redacted) field-key sets from the cluster, capped.
overlap_warnings: Vec<String>Advisory notes: shadowing against built-ins, incomplete separation, etc.
source: CandidateSourceCorpus (value-capable) or keys-only (presence-only).
Implementations§
Source§impl DiscoveryCandidate
impl DiscoveryCandidate
Sourcepub fn signature(&self) -> SchemaSignature
pub fn signature(&self) -> SchemaSignature
The candidate as a SchemaSignature (for validation, dry-run
reclassification, or loading into a classifier).
Sourcepub fn predicate_descriptions(&self) -> Vec<String>
pub fn predicate_descriptions(&self) -> Vec<String>
Human-readable one-line descriptions of the predicates, in order.
Trait Implementations§
Source§impl Clone for DiscoveryCandidate
impl Clone for DiscoveryCandidate
Source§fn clone(&self) -> DiscoveryCandidate
fn clone(&self) -> DiscoveryCandidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiscoveryCandidate
impl RefUnwindSafe for DiscoveryCandidate
impl Send for DiscoveryCandidate
impl Sync for DiscoveryCandidate
impl Unpin for DiscoveryCandidate
impl UnsafeUnpin for DiscoveryCandidate
impl UnwindSafe for DiscoveryCandidate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more