pub struct ModelMiddlewareHealthSnapshot {
pub trust_admitted: u64,
pub trust_rejected: u64,
pub provider_calls: u64,
pub usage_recorded: u64,
pub completion_calls: u64,
pub streaming_calls: u64,
pub trusted_tool_results: u64,
pub workspace_data_tool_results: u64,
pub external_tool_results: u64,
pub external_redaction_reviewed: u64,
}Expand description
Read-only counters for one model-middleware observation window.
Values never retain prompts, tool plaintext, credentials, or digests of private content—only stage outcomes and trust-label cardinality.
Fields§
§trust_admitted: u64Calls that passed trust admission (completion + streaming).
trust_rejected: u64Calls rejected at trust admission before budget/provider work.
provider_calls: u64Provider invocations started after generation admission.
usage_recorded: u64Successful usage-accounting completions after a provider response.
completion_calls: u64Non-streaming completion calls that passed trust admission.
streaming_calls: u64Streaming calls that passed trust admission.
trusted_tool_results: u64Tool-result blocks labeled Trusted observed at admission.
workspace_data_tool_results: u64Tool-result blocks labeled WorkspaceData observed at admission.
external_tool_results: u64Tool-result blocks labeled External observed at admission.
external_redaction_reviewed: u64External tool-result blocks that carried redaction_reviewed.
Trait Implementations§
Source§impl Clone for ModelMiddlewareHealthSnapshot
impl Clone for ModelMiddlewareHealthSnapshot
Source§fn clone(&self) -> ModelMiddlewareHealthSnapshot
fn clone(&self) -> ModelMiddlewareHealthSnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ModelMiddlewareHealthSnapshot
impl Default for ModelMiddlewareHealthSnapshot
Source§fn default() -> ModelMiddlewareHealthSnapshot
fn default() -> ModelMiddlewareHealthSnapshot
Source§impl<'de> Deserialize<'de> for ModelMiddlewareHealthSnapshot
impl<'de> Deserialize<'de> for ModelMiddlewareHealthSnapshot
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>,
impl Eq for ModelMiddlewareHealthSnapshot
impl StructuralPartialEq for ModelMiddlewareHealthSnapshot
Auto Trait Implementations§
impl Freeze for ModelMiddlewareHealthSnapshot
impl RefUnwindSafe for ModelMiddlewareHealthSnapshot
impl Send for ModelMiddlewareHealthSnapshot
impl Sync for ModelMiddlewareHealthSnapshot
impl Unpin for ModelMiddlewareHealthSnapshot
impl UnsafeUnpin for ModelMiddlewareHealthSnapshot
impl UnwindSafe for ModelMiddlewareHealthSnapshot
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>,
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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