pub struct PromotionConfig {
pub min_occurrences: u32,
pub min_sessions: u32,
pub cluster_threshold: f32,
}Expand description
Configuration knobs for PromotionEngine.
All thresholds have conservative defaults — they should be tuned based on real-world telemetry once the feature is in production.
Fields§
§min_occurrences: u32Minimum number of cluster members to qualify for promotion. Default: 3.
min_sessions: u32Minimum number of distinct sessions represented in the cluster. Default: 2.
cluster_threshold: f32Cosine similarity threshold for clustering. Messages with similarity ≥ this value
to a cluster’s centroid are merged into that cluster. Default: 0.85.
Trait Implementations§
Source§impl Clone for PromotionConfig
impl Clone for PromotionConfig
Source§fn clone(&self) -> PromotionConfig
fn clone(&self) -> PromotionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PromotionConfig
impl Debug for PromotionConfig
Auto Trait Implementations§
impl Freeze for PromotionConfig
impl RefUnwindSafe for PromotionConfig
impl Send for PromotionConfig
impl Sync for PromotionConfig
impl Unpin for PromotionConfig
impl UnsafeUnpin for PromotionConfig
impl UnwindSafe for PromotionConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request