pub(crate) struct Tier2Config {
pub(crate) max_concurrent_monitors: usize,
pub(crate) idle_disconnect_secs: u64,
pub(crate) activity_threshold_secs: u64,
}Expand description
Tier 2: XLX live monitoring configuration.
Controls how many XLX reflectors are monitored concurrently via the UDP JSON monitor protocol (port 10001) and when idle monitors are disconnected.
Fields§
§max_concurrent_monitors: usizeMaximum number of concurrent UDP JSON monitor connections.
Default: 100
idle_disconnect_secs: u64Seconds of inactivity before disconnecting a Tier 2 monitor.
Default: 600 (10 minutes)
activity_threshold_secs: u64Seconds of recent activity required to consider a reflector “active” and eligible for Tier 2 monitoring.
Default: 1800 (30 minutes)
Trait Implementations§
Source§impl Debug for Tier2Config
impl Debug for Tier2Config
Source§impl Default for Tier2Config
impl Default for Tier2Config
Source§impl<'de> Deserialize<'de> for Tier2Config
impl<'de> Deserialize<'de> for Tier2Config
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 Tier2Config
impl RefUnwindSafe for Tier2Config
impl Send for Tier2Config
impl Sync for Tier2Config
impl Unpin for Tier2Config
impl UnwindSafe for Tier2Config
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
§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>
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