pub struct DolConfig {Show 28 fields
pub store: Option<String>,
pub output: Option<String>,
pub metrics_interval: Option<u64>,
pub snapshot_interval: Option<u64>,
pub host: Option<String>,
pub theme: Option<String>,
pub api_timeout: Option<u64>,
pub api_quick_timeout: Option<u64>,
pub stats_timeout: Option<u64>,
pub events_timeout: Option<u64>,
pub webhook_timeout: Option<u64>,
pub restart_timeout: Option<u64>,
pub smtp_host: Option<String>,
pub smtp_port: Option<u16>,
pub smtp_user: Option<String>,
pub smtp_pass: Option<String>,
pub analysis_high_cpu_percent: Option<f64>,
pub analysis_critical_cpu_percent: Option<f64>,
pub analysis_memory_pressure_ratio: Option<f64>,
pub analysis_critical_memory_ratio: Option<f64>,
pub analysis_restart_loop_count: Option<u64>,
pub analysis_deployment_error_threshold: Option<u64>,
pub analysis_leak_memory_increase_pct: Option<f64>,
pub analysis_leak_min_samples: Option<u64>,
pub analysis_high_network_bytes: Option<u64>,
pub analysis_critical_network_bytes: Option<u64>,
pub analysis_high_disk_bytes: Option<u64>,
pub analysis_critical_disk_bytes: Option<u64>,
}Fields§
§store: Option<String>§output: Option<String>§metrics_interval: Option<u64>§snapshot_interval: Option<u64>§host: Option<String>§theme: Option<String>Default colour theme: “dark” or “light”.
api_timeout: Option<u64>Timeout for standard Docker API calls (list, inspect, etc.). Default: 30s.
api_quick_timeout: Option<u64>Timeout for lightweight Docker API calls (ping). Default: 10s.
stats_timeout: Option<u64>Timeout for per-container stats calls. Default: 10s.
events_timeout: Option<u64>Max seconds to wait for a single event from the events stream. Default: 30s.
webhook_timeout: Option<u64>Timeout for alert webhook HTTP POST. Default: 10s.
restart_timeout: Option<u64>Timeout for alert container restart action. Default: 30s.
smtp_host: Option<String>SMTP server hostname for email alerts. Default: localhost.
smtp_port: Option<u16>SMTP server port. Default: 25.
smtp_user: Option<String>SMTP username (optional).
smtp_pass: Option<String>SMTP password (optional).
analysis_high_cpu_percent: Option<f64>CPU % above which a warning is issued. Default: 80.
analysis_critical_cpu_percent: Option<f64>CPU % above which a critical alert is issued. Default: 95.
analysis_memory_pressure_ratio: Option<f64>Memory usage/limit ratio above which a warning is issued. Default: 0.85.
analysis_critical_memory_ratio: Option<f64>Memory usage/limit ratio above which a critical alert is issued. Default: 0.95.
analysis_restart_loop_count: Option<u64>Restart count threshold for restart loop detection. Default: 3.
analysis_deployment_error_threshold: Option<u64>Number of die events indicating deployment failure. Default: 3.
analysis_leak_memory_increase_pct: Option<f64>Memory increase % indicating a resource leak. Default: 20.
analysis_leak_min_samples: Option<u64>Min metric samples needed for leak detection. Default: 3.
analysis_high_network_bytes: Option<u64>Network I/O bytes warning threshold. Default: 1048576 (1 MB).
analysis_critical_network_bytes: Option<u64>Network I/O bytes critical threshold. Default: 10485760 (10 MB).
analysis_high_disk_bytes: Option<u64>Disk I/O bytes warning threshold. Default: 10485760 (10 MB).
analysis_critical_disk_bytes: Option<u64>Disk I/O bytes critical threshold. Default: 104857600 (100 MB).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DolConfig
impl<'de> Deserialize<'de> for DolConfig
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>,
Source§impl From<&DolConfig> for DockerApiConfig
impl From<&DolConfig> for DockerApiConfig
Auto Trait Implementations§
impl Freeze for DolConfig
impl RefUnwindSafe for DolConfig
impl Send for DolConfig
impl Sync for DolConfig
impl Unpin for DolConfig
impl UnsafeUnpin for DolConfig
impl UnwindSafe for DolConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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