pub struct AuditStatsResponse {
pub total_entries: usize,
pub cache_hit_rate: f64,
pub avg_latency_ms: f64,
pub by_model: HashMap<String, u64>,
}Expand description
Serialisable response body for GET /api/v1/audit/stats.
Fields§
§total_entries: usizeTotal entries in the log.
cache_hit_rate: f64Cache hit rate (0.0–1.0).
avg_latency_ms: f64Average latency in milliseconds.
by_model: HashMap<String, u64>Per-model entry counts.
Trait Implementations§
Source§impl Debug for AuditStatsResponse
impl Debug for AuditStatsResponse
Source§impl From<AuditStats> for AuditStatsResponse
impl From<AuditStats> for AuditStatsResponse
Source§fn from(s: AuditStats) -> Self
fn from(s: AuditStats) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuditStatsResponse
impl RefUnwindSafe for AuditStatsResponse
impl Send for AuditStatsResponse
impl Sync for AuditStatsResponse
impl Unpin for AuditStatsResponse
impl UnsafeUnpin for AuditStatsResponse
impl UnwindSafe for AuditStatsResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request