pub struct RuntimeAuditBatchMetrics {
pub flush_failures: u64,
pub degraded_rows: u64,
pub degraded: bool,
pub admission_refused_obligations: u64,
pub admission_refused_obligations_last_at_ms: Option<u64>,
pub admission_unresolved_obligations: u64,
pub admission_unresolved_obligations_last_at_ms: Option<u64>,
}Expand description
Process-wide audit-batch health counters, supplied by the runtime layer
that owns the audit-batch control. khive-db never produces these itself
— a direct khive-db caller always sees the corresponding
WriterContentionDiagnostics fields as None plus an explicit reason.
Fields§
§flush_failures: u64Accepted generations reaching terminal non-commit after retry, including driver death; excludes preflight/admission rejection.
degraded_rows: u64Pure-observability rows released without commit.
degraded: boolMonotonic process-lifetime degradation flag.
admission_refused_obligations: u64Admission-degrade-safe read verbs’ audit rows refused before enqueue
under transient audit-lane admission pressure (ADR-103 Amendment 3,
ADR-133 Amendment 1) — a confirmed, terminal accounting loss. Disjoint
from degraded_rows and from admission_unresolved_obligations.
admission_refused_obligations_last_at_ms: Option<u64>Wall-clock ms at which admission_refused_obligations last moved;
None until it moves. A total cannot say when it was last earned.
admission_unresolved_obligations: u64Admission-degrade-safe read verbs’ audit rows that were already
enqueued but had not resolved when the caller’s admission wait
deadline elapsed (ADR-103 Amendment 3, ADR-133 Amendment 1). Not a
confirmed loss — the row may still commit — so this is an upper bound
on the eventual undercount. Disjoint from degraded_rows and from
admission_refused_obligations.
admission_unresolved_obligations_last_at_ms: Option<u64>Wall-clock ms at which admission_unresolved_obligations last moved;
None until it moves.
Trait Implementations§
Source§impl Clone for RuntimeAuditBatchMetrics
impl Clone for RuntimeAuditBatchMetrics
impl Copy for RuntimeAuditBatchMetrics
Source§impl Debug for RuntimeAuditBatchMetrics
impl Debug for RuntimeAuditBatchMetrics
impl Eq for RuntimeAuditBatchMetrics
Source§impl PartialEq for RuntimeAuditBatchMetrics
impl PartialEq for RuntimeAuditBatchMetrics
impl StructuralPartialEq for RuntimeAuditBatchMetrics
Auto Trait Implementations§
impl Freeze for RuntimeAuditBatchMetrics
impl RefUnwindSafe for RuntimeAuditBatchMetrics
impl Send for RuntimeAuditBatchMetrics
impl Sync for RuntimeAuditBatchMetrics
impl Unpin for RuntimeAuditBatchMetrics
impl UnsafeUnpin for RuntimeAuditBatchMetrics
impl UnwindSafe for RuntimeAuditBatchMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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