pub struct PaneMonitorReport {
pub scenario: String,
pub verdicts: Vec<PaneMonitorVerdict>,
}Expand description
Aggregate report over one scenario.
Fields§
§scenario: StringScenario label (e.g. the profiling scenario name).
verdicts: Vec<PaneMonitorVerdict>Verdicts in evaluation order.
Implementations§
Source§impl PaneMonitorReport
impl PaneMonitorReport
Sourcepub fn with(self, verdict: PaneMonitorVerdict) -> Self
pub fn with(self, verdict: PaneMonitorVerdict) -> Self
Append a verdict (builder style).
Sourcepub fn push(&mut self, verdict: PaneMonitorVerdict)
pub fn push(&mut self, verdict: PaneMonitorVerdict)
Append a verdict in place.
Sourcepub fn worst_status(&self) -> PaneMonitorStatus
pub fn worst_status(&self) -> PaneMonitorStatus
The worst status across all verdicts (Healthy if empty).
Sourcepub fn has_violations(&self) -> bool
pub fn has_violations(&self) -> bool
Whether any assumption is violated — the CI fail condition.
Sourcepub fn violations(&self) -> impl Iterator<Item = &PaneMonitorVerdict>
pub fn violations(&self) -> impl Iterator<Item = &PaneMonitorVerdict>
Iterate the violated verdicts.
Sourcepub fn to_json(&self) -> String
pub fn to_json(&self) -> String
Deterministic structured JSON log (one object). Infallible: falls back to
"{}" on the serialization error that cannot occur for these fields.
Sourcepub fn summary_log(&self) -> String
pub fn summary_log(&self) -> String
Operator-facing multi-line summary: one line per verdict.
Trait Implementations§
Source§impl Clone for PaneMonitorReport
impl Clone for PaneMonitorReport
Source§fn clone(&self) -> PaneMonitorReport
fn clone(&self) -> PaneMonitorReport
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 PaneMonitorReport
impl Debug for PaneMonitorReport
Source§impl PartialEq for PaneMonitorReport
impl PartialEq for PaneMonitorReport
Source§fn eq(&self, other: &PaneMonitorReport) -> bool
fn eq(&self, other: &PaneMonitorReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaneMonitorReport
impl Serialize for PaneMonitorReport
impl StructuralPartialEq for PaneMonitorReport
Auto Trait Implementations§
impl Freeze for PaneMonitorReport
impl RefUnwindSafe for PaneMonitorReport
impl Send for PaneMonitorReport
impl Sync for PaneMonitorReport
impl Unpin for PaneMonitorReport
impl UnsafeUnpin for PaneMonitorReport
impl UnwindSafe for PaneMonitorReport
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