pub struct DeltaSummary {
pub headline: String,
pub score: f64,
pub sources: Vec<DeltaSource>,
pub severities: Vec<DeltaSeverity>,
pub highest_severity: DeltaSeverity,
}Expand description
Per-event delta summary.
The summary is the operator-facing view of
the regression. The headline is a one-line
description; the score is the per-target score
the classifier assigned; sources and
severities list the contributing channels
(sorted for determinism); highest_severity
is the worst severity tier across the deltas.
Fields§
§headline: StringOne-line headline describing the regression.
score: f64Per-target score the classifier assigned,
in [0.0, 1.0].
sources: Vec<DeltaSource>Source channels that contributed deltas. Sorted for determinism.
severities: Vec<DeltaSeverity>Distinct severity tiers the contributing deltas attached. Sorted for determinism.
highest_severity: DeltaSeverityHighest severity tier across the contributing deltas.
Implementations§
Source§impl DeltaSummary
impl DeltaSummary
Sourcepub fn new(
headline: impl Into<String>,
score: f64,
sources: Vec<DeltaSource>,
severities: Vec<DeltaSeverity>,
highest_severity: DeltaSeverity,
) -> Self
pub fn new( headline: impl Into<String>, score: f64, sources: Vec<DeltaSource>, severities: Vec<DeltaSeverity>, highest_severity: DeltaSeverity, ) -> Self
Build a summary from the per-target aggregate.
sources and severities are deduplicated
and sorted so the wire form is deterministic.
Trait Implementations§
Source§impl Clone for DeltaSummary
impl Clone for DeltaSummary
Source§fn clone(&self) -> DeltaSummary
fn clone(&self) -> DeltaSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeltaSummary
impl Debug for DeltaSummary
Source§impl<'de> Deserialize<'de> for DeltaSummary
impl<'de> Deserialize<'de> for DeltaSummary
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>,
Source§impl PartialEq for DeltaSummary
impl PartialEq for DeltaSummary
Source§fn eq(&self, other: &DeltaSummary) -> bool
fn eq(&self, other: &DeltaSummary) -> bool
self and other values to be equal, and is used by ==.