pub struct ContextBundle {
pub items: Vec<ContextItem>,
pub redactions: RedactionStats,
}Expand description
Diagnostic context attached to a critical event so the control-plane rule library has something to match against. See ADR 009.
The agent collects per-probe context (last journald lines, docker logs,
df -h, top processes, etc.), runs every item through the redaction module,
caps total size to 64 KiB, and ships the result as part of the envelope.
Backward-compatible: old agents emit envelopes without this field, and the
backend treats absent context as “no diagnosis input.”
Fields§
§items: Vec<ContextItem>Independent context items — typically 1–4 per bundle. Order matters for the per-bundle truncation policy (drop from the end first).
redactions: RedactionStatsAggregate redaction stats across all items.
Trait Implementations§
Source§impl Clone for ContextBundle
impl Clone for ContextBundle
Source§fn clone(&self) -> ContextBundle
fn clone(&self) -> ContextBundle
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 ContextBundle
impl Debug for ContextBundle
Source§impl Default for ContextBundle
impl Default for ContextBundle
Source§fn default() -> ContextBundle
fn default() -> ContextBundle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextBundle
impl<'de> Deserialize<'de> for ContextBundle
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContextBundle
impl PartialEq for ContextBundle
Source§fn eq(&self, other: &ContextBundle) -> bool
fn eq(&self, other: &ContextBundle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContextBundle
impl Serialize for ContextBundle
impl StructuralPartialEq for ContextBundle
Auto Trait Implementations§
impl Freeze for ContextBundle
impl RefUnwindSafe for ContextBundle
impl Send for ContextBundle
impl Sync for ContextBundle
impl Unpin for ContextBundle
impl UnsafeUnpin for ContextBundle
impl UnwindSafe for ContextBundle
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