pub enum ClassificationMethod {
Direct,
SanitizerHeuristic,
}Expand description
How a Finding’s type was determined.
Orthogonal to Confidence: confidence describes the runtime context
(CI vs production daemon), ClassificationMethod describes which
detection rule produced the type. Stored in
Finding::classification_method as Option; None means the
standard direct rule fired.
Variants§
Direct
Standard pipeline classification (e.g. distinct_params >= threshold for N+1, repeated identical (template, params) for
redundant). Equivalent to the absence of the field; emitted
explicitly only when a caller wants to be unambiguous.
SanitizerHeuristic
Reclassified via a heuristic path. For SQL: the OTel agent’s
sanitizer collapsed parameters to ?, and the timing/scope
signals suggest N+1 over redundant. For HTTP: repeated identical
params with high timing variance suggest N+1 over redundant.
Trait Implementations§
Source§impl Clone for ClassificationMethod
impl Clone for ClassificationMethod
Source§fn clone(&self) -> ClassificationMethod
fn clone(&self) -> ClassificationMethod
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ClassificationMethod
Source§impl Debug for ClassificationMethod
impl Debug for ClassificationMethod
Source§impl<'de> Deserialize<'de> for ClassificationMethod
impl<'de> Deserialize<'de> for ClassificationMethod
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>,
impl Eq for ClassificationMethod
Source§impl PartialEq for ClassificationMethod
impl PartialEq for ClassificationMethod
Source§fn eq(&self, other: &ClassificationMethod) -> bool
fn eq(&self, other: &ClassificationMethod) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ClassificationMethod
impl Serialize for ClassificationMethod
impl StructuralPartialEq for ClassificationMethod
Auto Trait Implementations§
impl Freeze for ClassificationMethod
impl RefUnwindSafe for ClassificationMethod
impl Send for ClassificationMethod
impl Sync for ClassificationMethod
impl Unpin for ClassificationMethod
impl UnsafeUnpin for ClassificationMethod
impl UnwindSafe for ClassificationMethod
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
T in a tonic::Request