pub struct AgentMetrics {
pub cycles: u64,
pub total_actions: u64,
pub memories_pruned: u64,
pub memories_merged: u64,
pub memories_archived: u64,
pub suggestions_made: u64,
pub gardens_run: u64,
pub uptime_secs: u64,
}Expand description
Performance and health metrics for the agent.
Fields§
§cycles: u64Total completed cycles.
total_actions: u64Total actions decided across all cycles.
memories_pruned: u64Memories pruned (counted from Prune actions).
memories_merged: u64Memories merged (counted from Merge actions; each Merge action = 1 merge op).
memories_archived: u64Memories archived (counted from Archive actions).
suggestions_made: u64Acquisition suggestions made.
gardens_run: u64Garden maintenance runs executed.
uptime_secs: u64Wall-clock seconds since start() was called (0 if never started).
Trait Implementations§
Source§impl Clone for AgentMetrics
impl Clone for AgentMetrics
Source§fn clone(&self) -> AgentMetrics
fn clone(&self) -> AgentMetrics
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 AgentMetrics
impl Debug for AgentMetrics
Source§impl<'de> Deserialize<'de> for AgentMetrics
impl<'de> Deserialize<'de> for AgentMetrics
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 AgentMetrics
impl RefUnwindSafe for AgentMetrics
impl Send for AgentMetrics
impl Sync for AgentMetrics
impl Unpin for AgentMetrics
impl UnsafeUnpin for AgentMetrics
impl UnwindSafe for AgentMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.