pub enum CorrelationDraftError {
Show 20 variants
TooFewGroups {
minimum: usize,
actual: usize,
},
TooFewEvents {
group: String,
actual: usize,
},
InvalidTimeKeys {
group: String,
event: usize,
location: String,
},
MixedTimeMode {
group: String,
},
InvalidTime {
group: String,
event: usize,
location: String,
kind: &'static str,
value: String,
},
DuplicateTime {
group: String,
first_event: usize,
second_event: usize,
time: i64,
},
TooFewSlots {
minimum: usize,
actual: usize,
},
DuplicateSlot {
group: String,
slot: usize,
events: Vec<usize>,
},
OrderInversion {
groups: Vec<String>,
},
InvalidWindowMargin(f64),
WindowOverflow,
AmbiguousEntity {
candidates: Vec<String>,
},
InvalidEntity {
field: String,
group: String,
event: usize,
},
MissingSlotIds {
slots: usize,
provided: usize,
},
SlotDraft {
slot: usize,
source: DraftError,
},
CrossSlotMatch {
group: String,
event: usize,
assigned: String,
colliding: Vec<String>,
forms: Vec<String>,
},
SlotFloor {
slot: String,
floor: usize,
},
Internal {
stage: &'static str,
message: String,
},
PositiveVerification {
group: String,
reason: String,
},
NegativeGroupMatched {
groups: Vec<String>,
},
}Expand description
Why a grouped correlation draft could not be produced.
Variants§
TooFewGroups
Too few positive groups were provided.
TooFewEvents
A group has fewer than two events.
InvalidTimeKeys
An event carries neither or both supported time keys.
MixedTimeMode
A group mixes absolute and relative time.
InvalidTime
A timestamp or offset is invalid.
DuplicateTime
Two events in a group have the same parsed time.
TooFewSlots
Too few recurring event slots survived.
DuplicateSlot
A recurring slot appears more than once in one group.
OrderInversion
Forced ordering disagrees with observed groups.
InvalidWindowMargin(f64)
Window margin is invalid.
WindowOverflow
The inferred window overflowed.
AmbiguousEntity
Grouping inference found zero or multiple valid fields.
InvalidEntity
An explicit grouping field is absent or unstable.
MissingSlotIds
Fewer slot ids than inferred slots and no base rule id to derive from.
SlotDraft
A per-slot detection could not be drafted.
CrossSlotMatch
One event matches the wrong slot rules.
SlotFloor
A slot cannot match its assigned positives at the field floor.
Internal
Emitted YAML did not parse or compile.
PositiveVerification
An isolated positive group did not fire correctly.
NegativeGroupMatched
One or more negative groups fired the target correlation.
Trait Implementations§
Source§impl Debug for CorrelationDraftError
impl Debug for CorrelationDraftError
Source§impl Display for CorrelationDraftError
impl Display for CorrelationDraftError
Source§impl Error for CorrelationDraftError
impl Error for CorrelationDraftError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()