pub struct StatsConfig {
pub flush_interval_secs: u64,
pub sync_interval_secs: u64,
}Expand description
Stats collection and sync configuration.
Fields§
§flush_interval_secs: u64How often (seconds) to flush in-memory counters to storage. Default: 5.
sync_interval_secs: u64How often (seconds) to push aggregate stats to the control plane. Default: 1. Set to 0 to disable sync.
Trait Implementations§
Source§impl Clone for StatsConfig
impl Clone for StatsConfig
Source§impl Debug for StatsConfig
impl Debug for StatsConfig
Source§impl Default for StatsConfig
impl Default for StatsConfig
Source§impl<'de> Deserialize<'de> for StatsConfig
impl<'de> Deserialize<'de> for StatsConfig
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 StatsConfig
impl RefUnwindSafe for StatsConfig
impl Send for StatsConfig
impl Sync for StatsConfig
impl Unpin for StatsConfig
impl UnsafeUnpin for StatsConfig
impl UnwindSafe for StatsConfig
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