pub struct DiagReport {
pub daemon_running: bool,
pub peer_id: Option<String>,
pub connected_peers: Option<usize>,
pub storage_blocks: Option<u64>,
pub storage_bytes: Option<u64>,
pub memory_bytes: Option<u64>,
pub avg_inference_ms: Option<f64>,
pub cache_hit_rate: Option<f64>,
pub tensorlogic_rules: Option<usize>,
pub tensorlogic_facts: Option<usize>,
pub hnsw_vectors: Option<u64>,
pub uptime_secs: Option<u64>,
}Expand description
Diagnostic snapshot collected from a running (or offline) node.
Fields§
§daemon_running: boolWhether the daemon process was reachable when the report was generated.
peer_id: Option<String>Libp2p peer ID string (e.g. "12D3KooW…").
connected_peers: Option<usize>Number of peers currently connected.
storage_blocks: Option<u64>Total number of blocks in storage.
storage_bytes: Option<u64>Total bytes occupying storage.
memory_bytes: Option<u64>Approximate in-process memory usage in bytes.
avg_inference_ms: Option<f64>Average inference latency across recent queries (milliseconds).
cache_hit_rate: Option<f64>Semantic cache hit rate in [0, 1].
tensorlogic_rules: Option<usize>Number of TensorLogic rules loaded.
tensorlogic_facts: Option<usize>Number of TensorLogic facts loaded.
hnsw_vectors: Option<u64>Number of HNSW vectors indexed.
uptime_secs: Option<u64>Node uptime in seconds.
Implementations§
Source§impl DiagReport
impl DiagReport
Trait Implementations§
Source§impl Debug for DiagReport
impl Debug for DiagReport
Auto Trait Implementations§
impl Freeze for DiagReport
impl RefUnwindSafe for DiagReport
impl Send for DiagReport
impl Sync for DiagReport
impl Unpin for DiagReport
impl UnsafeUnpin for DiagReport
impl UnwindSafe for DiagReport
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.