pub struct LiveMetrics {
pub actor_id: ActorId,
pub timestamp: HlcTimestamp,
pub queue_depth: usize,
pub inbound_rate: f64,
pub outbound_rate: f64,
pub latency_p50: Duration,
pub latency_p99: Duration,
pub state_size_bytes: u64,
pub gpu_utilization: f32,
pub tenant_id: u64,
}Expand description
Live per-actor metrics delivered to subscribers.
A LiveMetrics observation represents a point-in-time snapshot of an
actor’s operational state, emitted periodically (per the subscriber’s
configured interval) by a backend or aggregator.
Fields§
§actor_id: ActorIdActor whose metrics are being reported.
timestamp: HlcTimestampHLC timestamp for this observation (causal ordering across nodes).
queue_depth: usizeCurrent inbound queue depth.
inbound_rate: f64Inbound message rate (messages/sec), EWMA-smoothed.
outbound_rate: f64Outbound message rate (messages/sec), EWMA-smoothed.
latency_p50: DurationObserved p50 processing latency.
latency_p99: DurationObserved p99 processing latency.
state_size_bytes: u64Resident actor state size in bytes.
gpu_utilization: f32GPU utilization (0.0–1.0). Always 0.0 on the CPU backend.
tenant_id: u64Tenant this actor belongs to (0 = unspecified).
Trait Implementations§
Source§impl Clone for LiveMetrics
impl Clone for LiveMetrics
Source§fn clone(&self) -> LiveMetrics
fn clone(&self) -> LiveMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LiveMetrics
impl RefUnwindSafe for LiveMetrics
impl Send for LiveMetrics
impl Sync for LiveMetrics
impl Unpin for LiveMetrics
impl UnsafeUnpin for LiveMetrics
impl UnwindSafe for LiveMetrics
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.