pub(crate) struct Rca {Show 14 fields
title: String,
from: i64,
to: i64,
summary: String,
impact: Vec<String>,
timeline: Vec<(i64, String)>,
root_cause: String,
pub(crate) evidence: Vec<Fact>,
ruled_out: Vec<String>,
contributing: Vec<String>,
remediation: Vec<String>,
verification: Vec<String>,
prevention: Option<String>,
pub(crate) emit: bool,
}Expand description
A parsed, not-yet-verified write-up.
Nothing here is rendered until verified is true, which is
the type-level half of the promise the module header makes.
Fields§
§title: String§from: i64§to: i64§summary: String§impact: Vec<String>§timeline: Vec<(i64, String)>Sorted by time at parse, because a timeline given out of order is the one defect in this document that a reader will believe rather than notice.
root_cause: String§evidence: Vec<Fact>§ruled_out: Vec<String>§contributing: Vec<String>§remediation: Vec<String>§verification: Vec<String>§prevention: Option<String>An alerts.kyaml fragment, already through the rule parser.
emit: boolImplementations§
Source§impl Rca
impl Rca
Sourcepub(crate) fn dead(&self) -> Option<String>
pub(crate) fn dead(&self) -> Option<String>
The citations that came back empty or unreadable, as one message.
Returned instead of the document rather than alongside it. A markdown RCA is a thing people paste into a ticket, and handing one back with a warning above it is handing back a document that will be pasted without the warning.
Sourcepub(crate) fn export(&self, md: &str, now: i64) -> ExportLogsServiceRequest
pub(crate) fn export(&self, md: &str, now: i64) -> ExportLogsServiceRequest
The write-up as an OTLP log export, for emit.
A log record and not a new kind of object, which is the whole reason
this is affordable: an RCA is then searchable by query_records, framed
by correlate, and expired by the same retention as the telemetry it
describes. There is no incident store, no index to maintain and no
second thing to back up (principle 4).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rca
impl RefUnwindSafe for Rca
impl Send for Rca
impl Sync for Rca
impl Unpin for Rca
impl UnsafeUnpin for Rca
impl UnwindSafe for Rca
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].