pub struct ThresholdsConfig {
pub n_plus_one_sql_critical_max: u32,
pub n_plus_one_http_warning_max: u32,
pub io_waste_ratio_max: f64,
}Expand description
Quality-gate thresholds. Maps 1:1 to [thresholds] in TOML.
Fields§
§n_plus_one_sql_critical_max: u32Maximum allowed critical N+1 SQL findings before quality gate fails.
n_plus_one_http_warning_max: u32Maximum allowed warning+ N+1 HTTP findings before quality gate fails.
io_waste_ratio_max: f64Maximum allowed I/O waste ratio before quality gate fails.
Trait Implementations§
Source§impl Clone for ThresholdsConfig
impl Clone for ThresholdsConfig
Source§fn clone(&self) -> ThresholdsConfig
fn clone(&self) -> ThresholdsConfig
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 ThresholdsConfig
impl Debug for ThresholdsConfig
Auto Trait Implementations§
impl Freeze for ThresholdsConfig
impl RefUnwindSafe for ThresholdsConfig
impl Send for ThresholdsConfig
impl Sync for ThresholdsConfig
impl Unpin for ThresholdsConfig
impl UnsafeUnpin for ThresholdsConfig
impl UnwindSafe for ThresholdsConfig
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request