pub struct DriftEvaluationSample<'a> {
pub workspace_id: &'a str,
pub endpoint: &'a str,
pub method: &'a str,
pub total: u32,
pub breaking: u32,
pub potentially_breaking: u32,
pub budget_exceeded: bool,
}Expand description
A single drift evaluation sample to feed into
MetricsRegistry::record_drift_evaluation. Borrows the string labels
so callers don’t have to allocate per-request.
workspace_id should be the empty string when the request isn’t tied to a
specific tenant (the global “drift-by-endpoint” series remains useful and
the dashboards collapse the label).
Fields§
§workspace_id: &'a str§endpoint: &'a str§method: &'a str§total: u32§breaking: u32§potentially_breaking: u32§budget_exceeded: boolTrait Implementations§
Source§impl<'a> Clone for DriftEvaluationSample<'a>
impl<'a> Clone for DriftEvaluationSample<'a>
Source§fn clone(&self) -> DriftEvaluationSample<'a>
fn clone(&self) -> DriftEvaluationSample<'a>
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<'a> Debug for DriftEvaluationSample<'a>
impl<'a> Debug for DriftEvaluationSample<'a>
impl<'a> Copy for DriftEvaluationSample<'a>
Auto Trait Implementations§
impl<'a> Freeze for DriftEvaluationSample<'a>
impl<'a> RefUnwindSafe for DriftEvaluationSample<'a>
impl<'a> Send for DriftEvaluationSample<'a>
impl<'a> Sync for DriftEvaluationSample<'a>
impl<'a> Unpin for DriftEvaluationSample<'a>
impl<'a> UnsafeUnpin for DriftEvaluationSample<'a>
impl<'a> UnwindSafe for DriftEvaluationSample<'a>
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