pub struct RewriteStats {
pub total_queries: u64,
pub rewritten_queries: u64,
pub no_match_queries: u64,
pub rewrite_ratio: f64,
pub avg_rewrite_time: Duration,
pub total_rewrite_time: Duration,
pub rule_stats: HashMap<String, RuleStatsSnapshot>,
pub latency: LatencyPercentiles,
}Expand description
Overall rewrite statistics
Fields§
§total_queries: u64Total queries processed
rewritten_queries: u64Queries that were rewritten
no_match_queries: u64Queries with no matching rules
rewrite_ratio: f64Ratio of rewritten queries
avg_rewrite_time: DurationAverage rewrite time
total_rewrite_time: DurationTotal rewrite time
rule_stats: HashMap<String, RuleStatsSnapshot>Per-rule statistics
latency: LatencyPercentilesLatency percentiles
Trait Implementations§
Source§impl Clone for RewriteStats
impl Clone for RewriteStats
Source§fn clone(&self) -> RewriteStats
fn clone(&self) -> RewriteStats
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 RewriteStats
impl RefUnwindSafe for RewriteStats
impl Send for RewriteStats
impl Sync for RewriteStats
impl Unpin for RewriteStats
impl UnsafeUnpin for RewriteStats
impl UnwindSafe for RewriteStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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