pub struct HealthThresholds {
pub max_error_rate: f64,
pub max_response_time_ms: u64,
pub min_success_rate: f64,
pub max_queue_depth: usize,
pub max_memory_usage_mb: f64,
pub max_storage_usage_percent: f64,
}Expand description
Health check thresholds
Fields§
§max_error_rate: f64Maximum allowed error rate (0.0 to 1.0)
max_response_time_ms: u64Maximum response time in milliseconds
min_success_rate: f64Minimum success rate (0.0 to 1.0)
max_queue_depth: usizeMaximum queue depth
max_memory_usage_mb: f64Maximum memory usage in MB
max_storage_usage_percent: f64Maximum storage usage percentage
Trait Implementations§
Source§impl Clone for HealthThresholds
impl Clone for HealthThresholds
Source§fn clone(&self) -> HealthThresholds
fn clone(&self) -> HealthThresholds
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 HealthThresholds
impl Debug for HealthThresholds
Source§impl Default for HealthThresholds
impl Default for HealthThresholds
Source§impl<'de> Deserialize<'de> for HealthThresholds
impl<'de> Deserialize<'de> for HealthThresholds
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
Auto Trait Implementations§
impl Freeze for HealthThresholds
impl RefUnwindSafe for HealthThresholds
impl Send for HealthThresholds
impl Sync for HealthThresholds
impl Unpin for HealthThresholds
impl UnwindSafe for HealthThresholds
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