pub struct WarmthDetectionConfig {
pub sample_size: u32,
pub cold_threshold_multiplier: f64,
pub idle_cold_timeout_secs: u64,
pub cold_action: ColdModelAction,
}Expand description
Configuration for cold model detection
Tracks request latency to detect when models have gone cold after idle periods. This is a passive check that observes actual requests rather than sending probes.
Fields§
§sample_size: u32Number of requests to sample for baseline latency
cold_threshold_multiplier: f64Multiplier for cold detection (latency > baseline * multiplier = cold)
idle_cold_timeout_secs: u64Time after which a model is considered potentially cold (seconds)
cold_action: ColdModelActionAction to take when cold model detected
Trait Implementations§
Source§impl Clone for WarmthDetectionConfig
impl Clone for WarmthDetectionConfig
Source§fn clone(&self) -> WarmthDetectionConfig
fn clone(&self) -> WarmthDetectionConfig
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 WarmthDetectionConfig
impl Debug for WarmthDetectionConfig
Source§impl<'de> Deserialize<'de> for WarmthDetectionConfig
impl<'de> Deserialize<'de> for WarmthDetectionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WarmthDetectionConfig
impl PartialEq for WarmthDetectionConfig
Source§impl Serialize for WarmthDetectionConfig
impl Serialize for WarmthDetectionConfig
impl Eq for WarmthDetectionConfig
Auto Trait Implementations§
impl Freeze for WarmthDetectionConfig
impl RefUnwindSafe for WarmthDetectionConfig
impl Send for WarmthDetectionConfig
impl Sync for WarmthDetectionConfig
impl Unpin for WarmthDetectionConfig
impl UnwindSafe for WarmthDetectionConfig
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 more