pub struct AlertThresholds {
pub max_queue_size: u64,
pub max_error_rate: f64,
pub max_task_duration_ms: u64,
pub max_memory_usage_mb: u64,
pub max_worker_idle_time_sec: u64,
}
Expand description
Configurable alert thresholds
Fields§
§max_queue_size: u64
§max_error_rate: f64
§max_task_duration_ms: u64
§max_memory_usage_mb: u64
§max_worker_idle_time_sec: u64
Trait Implementations§
Source§impl Clone for AlertThresholds
impl Clone for AlertThresholds
Source§fn clone(&self) -> AlertThresholds
fn clone(&self) -> AlertThresholds
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 AlertThresholds
impl Debug for AlertThresholds
Source§impl Default for AlertThresholds
impl Default for AlertThresholds
Source§impl<'de> Deserialize<'de> for AlertThresholds
impl<'de> Deserialize<'de> for AlertThresholds
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 AlertThresholds
impl RefUnwindSafe for AlertThresholds
impl Send for AlertThresholds
impl Sync for AlertThresholds
impl Unpin for AlertThresholds
impl UnwindSafe for AlertThresholds
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