pub struct IncidentRecord {Show 16 fields
pub id: String,
pub fingerprint: String,
pub kind: String,
pub source_file: String,
pub route_pattern: Option<String>,
pub status_code: Option<i64>,
pub error_message: String,
pub detail: Option<String>,
pub context_json: String,
pub git_sha: Option<String>,
pub occurrences: i64,
pub status: String,
pub resolved_in_sha: Option<String>,
pub recent_occurrences_json: String,
pub first_seen_at: String,
pub last_seen_at: String,
}Expand description
Persisted runtime incident row stored in slabs_incidents.
Fields§
§id: StringPrefixed incident identifier (inc_<ulid>).
fingerprint: StringDeterministic SHA-256 deduplication fingerprint.
kind: StringIncident category (for example "panic", "http_5xx", "slow_request", "job_dead", "slow_job", or "client_error").
source_file: StringSource file associated with the incident (for example "slabs/rooms/send_message.rs", "jobs/send_email.rs", or "browser").
route_pattern: Option<String>Optional matched HTTP route pattern or job/browser path.
status_code: Option<i64>Optional HTTP status code associated with the incident.
error_message: StringTruncated error summary (at most 1024 UTF-8 bytes).
detail: Option<String>Optional extended diagnostic detail (at most 4096 UTF-8 bytes).
context_json: StringJSON-serialized redacted diagnostic context.
git_sha: Option<String>Optional Git commit SHA active when the incident was last observed.
occurrences: i64Number of times this fingerprinted incident has occurred.
status: StringLifecycle state ("open", "resolved", or "reopened").
resolved_in_sha: Option<String>Optional Git commit SHA recorded when the incident was resolved.
recent_occurrences_json: StringJSON array of the last 10 occurrence snapshots (seen_at, git_sha, request_id, latency_ms).
first_seen_at: StringFixed-width UTC RFC 3339 timestamp when the incident was first recorded.
last_seen_at: StringFixed-width UTC RFC 3339 timestamp when the incident was most recently updated.
Trait Implementations§
Source§impl Clone for IncidentRecord
impl Clone for IncidentRecord
Source§impl Debug for IncidentRecord
impl Debug for IncidentRecord
Source§impl<'de> Deserialize<'de> for IncidentRecord
impl<'de> Deserialize<'de> for IncidentRecord
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<'a, R: Row> FromRow<'a, R> for IncidentRecord
impl<'a, R: Row> FromRow<'a, R> for IncidentRecord
Auto Trait Implementations§
impl Forget for IncidentRecord
impl Freeze for IncidentRecord
impl Move for IncidentRecord
impl RefUnwindSafe for IncidentRecord
impl Send for IncidentRecordwhere
RawVecInner: Send,
impl Sync for IncidentRecordwhere
RawVecInner: Sync,
impl Unpin for IncidentRecord
impl UnsafeUnpin for IncidentRecord
impl UnwindSafe for IncidentRecordwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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