pub struct PoolRecommendationDiff {
pub current_pool_size: u32,
pub recommended_pool_size: u32,
pub pool_size_delta: i64,
pub change: PoolSizeChange,
pub additional_connections_required: u32,
pub removable_connections: u32,
pub connection_change_percent: f64,
pub current_evaluation: EvaluationResult,
pub recommended_report: SimulationReport,
}Expand description
Recommendation diff between an imported production pool and a computed recommendation.
Fields§
§current_pool_size: u32Current production pool size from telemetry.
recommended_pool_size: u32Recommended pool size from the sizing engine.
pool_size_delta: i64Signed difference: recommended_pool_size - current_pool_size.
change: PoolSizeChangeDirection of the sizing change.
additional_connections_required: u32Extra connections required when Self::change is PoolSizeChange::Increase.
removable_connections: u32Connections that can be removed when Self::change is PoolSizeChange::Decrease.
connection_change_percent: f64Signed percentage change relative to the current pool size.
current_evaluation: EvaluationResultEvaluation of the current production pool size.
recommended_report: SimulationReportFull simulation report for the recommended pool size.
Implementations§
Source§impl PoolRecommendationDiff
impl PoolRecommendationDiff
Sourcepub fn worst_saturation(&self) -> SaturationLevel
pub fn worst_saturation(&self) -> SaturationLevel
Returns the worst saturation level across the current and recommended evaluations.
Trait Implementations§
Source§impl Clone for PoolRecommendationDiff
impl Clone for PoolRecommendationDiff
Source§fn clone(&self) -> PoolRecommendationDiff
fn clone(&self) -> PoolRecommendationDiff
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PoolRecommendationDiff
impl Debug for PoolRecommendationDiff
Source§impl<'de> Deserialize<'de> for PoolRecommendationDiff
impl<'de> Deserialize<'de> for PoolRecommendationDiff
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
Source§impl PartialEq for PoolRecommendationDiff
impl PartialEq for PoolRecommendationDiff
Source§fn eq(&self, other: &PoolRecommendationDiff) -> bool
fn eq(&self, other: &PoolRecommendationDiff) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PoolRecommendationDiff
impl Serialize for PoolRecommendationDiff
impl StructuralPartialEq for PoolRecommendationDiff
Auto Trait Implementations§
impl Freeze for PoolRecommendationDiff
impl RefUnwindSafe for PoolRecommendationDiff
impl Send for PoolRecommendationDiff
impl Sync for PoolRecommendationDiff
impl Unpin for PoolRecommendationDiff
impl UnsafeUnpin for PoolRecommendationDiff
impl UnwindSafe for PoolRecommendationDiff
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.