Skip to main content

IncidentRecord

Struct IncidentRecord 

Source
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: String

Prefixed incident identifier (inc_<ulid>).

§fingerprint: String

Deterministic SHA-256 deduplication fingerprint.

§kind: String

Incident category (for example "panic", "http_5xx", "slow_request", "job_dead", "slow_job", or "client_error").

§source_file: String

Source 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: String

Truncated error summary (at most 1024 UTF-8 bytes).

§detail: Option<String>

Optional extended diagnostic detail (at most 4096 UTF-8 bytes).

§context_json: String

JSON-serialized redacted diagnostic context.

§git_sha: Option<String>

Optional Git commit SHA active when the incident was last observed.

§occurrences: i64

Number of times this fingerprinted incident has occurred.

§status: String

Lifecycle state ("open", "resolved", or "reopened").

§resolved_in_sha: Option<String>

Optional Git commit SHA recorded when the incident was resolved.

§recent_occurrences_json: String

JSON array of the last 10 occurrence snapshots (seen_at, git_sha, request_id, latency_ms).

§first_seen_at: String

Fixed-width UTC RFC 3339 timestamp when the incident was first recorded.

§last_seen_at: String

Fixed-width UTC RFC 3339 timestamp when the incident was most recently updated.

Trait Implementations§

Source§

impl Clone for IncidentRecord

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IncidentRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for IncidentRecord

Source§

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<'a, R: Row> FromRow<'a, R> for IncidentRecord
where &'a str: ColumnIndex<R>, String: Decode<'a, R::Database> + Type<R::Database>, Option<String>: Decode<'a, R::Database> + Type<R::Database>, Option<i64>: Decode<'a, R::Database> + Type<R::Database>, i64: Decode<'a, R::Database> + Type<R::Database>,

Source§

fn from_row(__row: &'a R) -> Result<Self>

Source§

impl Serialize for IncidentRecord

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Forget for IncidentRecord

§

impl Freeze for IncidentRecord
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze,

§

impl Move for IncidentRecord

§

impl RefUnwindSafe for IncidentRecord

§

impl Send for IncidentRecord
where RawVecInner: Send,

§

impl Sync for IncidentRecord
where RawVecInner: Sync,

§

impl Unpin for IncidentRecord
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for IncidentRecord

§

impl UnwindSafe for IncidentRecord
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more