pub struct PluginUsageEntry {
pub attachment_id: Option<Uuid>,
pub plugin_name: Option<String>,
pub plugin_version: Option<String>,
pub invoke_ms: i64,
pub memory_peak_mb: Option<i64>,
}Expand description
Per-plugin row in the deployment usage response.
Fields§
§attachment_id: Option<Uuid>hosted_mock_plugins.id. Stable per (deployment, plugin) — a
re-attach after detach gets a new id, so historical data from a
previous attachment surfaces with its old id.
plugin_name: Option<String>plugins.name as snapshot in the metric’s metadata at write time.
Optional because the OTLP aggregator may not have populated it
yet; renders as “—” in the UI.
plugin_version: Option<String>§invoke_ms: i64SUM of wall-time across all buckets for this attachment in the current billing period.
memory_peak_mb: Option<i64>MAX peak memory across buckets, in MB. Optional in v1 — the OTLP aggregator’s MemoryTracker integration (PR #396) may not populate this yet. Surfaces as “—” in the UI when missing.
Trait Implementations§
Source§impl Debug for PluginUsageEntry
impl Debug for PluginUsageEntry
Auto Trait Implementations§
impl Freeze for PluginUsageEntry
impl RefUnwindSafe for PluginUsageEntry
impl Send for PluginUsageEntry
impl Sync for PluginUsageEntry
impl Unpin for PluginUsageEntry
impl UnsafeUnpin for PluginUsageEntry
impl UnwindSafe for PluginUsageEntry
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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>
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 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>
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 moreCreates a shared type from an unshared type.