pub struct MetricsSnapshot {
pub messages_received: u64,
pub messages_processed: u64,
pub messages_failed: u64,
pub heartbeats: u64,
pub last_message_at: u64,
pub restart_count: u64,
pub llm_input_tokens: u64,
pub llm_output_tokens: u64,
pub llm_cost_usd: f64,
}Expand description
A point-in-time snapshot of ActorMetrics that is Serialize.
Fields§
§messages_received: u64§messages_processed: u64§messages_failed: u64§heartbeats: u64§last_message_at: u64UNIX seconds of last message.
restart_count: u64Number of supervisor restarts.
llm_input_tokens: u64Total LLM input tokens.
llm_output_tokens: u64Total LLM output tokens.
llm_cost_usd: f64Total LLM cost in USD.
Trait Implementations§
Source§impl Clone for MetricsSnapshot
impl Clone for MetricsSnapshot
Source§fn clone(&self) -> MetricsSnapshot
fn clone(&self) -> MetricsSnapshot
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 moreSource§impl Debug for MetricsSnapshot
impl Debug for MetricsSnapshot
Source§impl<'de> Deserialize<'de> for MetricsSnapshot
impl<'de> Deserialize<'de> for MetricsSnapshot
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MetricsSnapshot
impl RefUnwindSafe for MetricsSnapshot
impl Send for MetricsSnapshot
impl Sync for MetricsSnapshot
impl Unpin for MetricsSnapshot
impl UnwindSafe for MetricsSnapshot
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