pub struct ChainHealth {
pub chain: String,
pub state: IndexerState,
pub head_block: u64,
pub events_processed: u64,
pub block_lag: u64,
pub uptime: Duration,
pub last_error: Option<String>,
pub is_healthy: bool,
}Expand description
Health snapshot for a single chain instance.
Fields§
§chain: StringChain identifier matching IndexerConfig::id.
state: IndexerStateCurrent indexer state.
head_block: u64Latest processed block number.
events_processed: u64Total events processed since start.
block_lag: u64Approximate blocks behind the chain tip (0 when caught up or unknown).
uptime: DurationHow long the chain has been running.
last_error: Option<String>Last error message, if any.
is_healthy: booltrue when the chain is actively running without any error.
Trait Implementations§
Source§impl Clone for ChainHealth
impl Clone for ChainHealth
Source§fn clone(&self) -> ChainHealth
fn clone(&self) -> ChainHealth
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 ChainHealth
impl Debug for ChainHealth
Source§impl<'de> Deserialize<'de> for ChainHealth
impl<'de> Deserialize<'de> for ChainHealth
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 ChainHealth
impl RefUnwindSafe for ChainHealth
impl Send for ChainHealth
impl Sync for ChainHealth
impl Unpin for ChainHealth
impl UnsafeUnpin for ChainHealth
impl UnwindSafe for ChainHealth
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