pub struct StrategyMetrics {
pub wal_size: u64,
pub committed_lsn: u64,
pub checkpointed_lsn: u64,
pub pending_transactions: u64,
pub time_since_last_checkpoint: Duration,
}Expand description
Current strategy metrics for monitoring and decision making
Fields§
§wal_size: u64Current WAL file size in bytes
committed_lsn: u64Current committed LSN in WAL
checkpointed_lsn: u64Last checkpointed LSN
pending_transactions: u64Number of transactions pending checkpoint
time_since_last_checkpoint: DurationTime elapsed since last checkpoint
Implementations§
Source§impl StrategyMetrics
impl StrategyMetrics
Sourcepub fn recommend_adjustment(
&self,
current_strategy: &CheckpointStrategy,
) -> Option<String>
pub fn recommend_adjustment( &self, current_strategy: &CheckpointStrategy, ) -> Option<String>
Get recommended strategy adjustment
Trait Implementations§
Source§impl Clone for StrategyMetrics
impl Clone for StrategyMetrics
Source§fn clone(&self) -> StrategyMetrics
fn clone(&self) -> StrategyMetrics
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 moreAuto Trait Implementations§
impl Freeze for StrategyMetrics
impl RefUnwindSafe for StrategyMetrics
impl Send for StrategyMetrics
impl Sync for StrategyMetrics
impl Unpin for StrategyMetrics
impl UnwindSafe for StrategyMetrics
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