pub type Stats = KnxMetricsSnapshot;Expand description
Canonical stats surface for architecture-level composition.
Aliased Type§
pub struct Stats {Show 63 fields
pub timestamp_ms: u64,
pub server_state: u8,
pub active_connections: u64,
pub max_connections: u64,
pub heartbeat_total_requests: u64,
pub heartbeat_continue_count: u64,
pub heartbeat_immediate_reconnect_count: u64,
pub heartbeat_abandon_tunnel_count: u64,
pub heartbeat_delayed_reconnect_count: u64,
pub heartbeat_no_response_count: u64,
pub heartbeat_fault_rate: f64,
pub cache_hits_total: u64,
pub cache_misses_total: u64,
pub cache_hit_rate: f64,
pub cache_lookups_total: u64,
pub cache_evictions_total: u64,
pub cache_expirations_total: u64,
pub cache_updates_total: u64,
pub cache_indication_updates: u64,
pub cache_write_updates: u64,
pub cache_entries_current: u64,
pub error_tracker_successes_total: u64,
pub error_tracker_failures_total: u64,
pub error_tracker_error_rate: f64,
pub error_tracker_events_total: u64,
pub error_tracker_consecutive_triggers: u64,
pub error_tracker_rate_triggers: u64,
pub filter_chain_frames_sent: u64,
pub filter_chain_frames_received: u64,
pub filter_chain_frames_dropped: u64,
pub filter_chain_frames_queued: u64,
pub filter_chain_total_delay_us: u64,
pub filter_chain_bypass_count: u64,
pub pace_immediate_pass: u64,
pub pace_delayed_frames: u64,
pub pace_dropped_frames: u64,
pub pace_total_delay_us: u64,
pub pace_busy_to_idle: u64,
pub pace_idle_to_down: u64,
pub queue_direct_pass: u64,
pub queue_queued_frames: u64,
pub queue_dropped_full: u64,
pub queue_evicted_frames: u64,
pub queue_drained_frames: u64,
pub queue_high_priority: u64,
pub queue_normal_priority: u64,
pub queue_low_priority: u64,
pub retry_direct_pass: u64,
pub retry_circuit_open_drops: u64,
pub retry_probe_frames: u64,
pub retry_attempts: u64,
pub retry_successes: u64,
pub retry_failures: u64,
pub retry_state_transitions: u64,
pub retry_circuit_trips: u64,
pub retry_circuit_resets: u64,
pub tunnel_frames_sent_total: u64,
pub tunnel_frames_received_total: u64,
pub tunnel_duplicates_total: u64,
pub tunnel_out_of_order_total: u64,
pub tunnel_fatal_desyncs_total: u64,
pub tunnel_resets_total: u64,
pub tunnel_fsm_transitions_total: u64,
}Fields§
§timestamp_ms: u64Snapshot timestamp (milliseconds since collector creation).
server_state: u8Current server state (Stopped=0, Starting=1, Running=2, Stopping=3).
active_connections: u64Number of active tunnel connections.
max_connections: u64Maximum connection capacity.
heartbeat_total_requests: u64Total heartbeat requests processed.
heartbeat_continue_count: u64Number of Continue (0x00) responses.
heartbeat_immediate_reconnect_count: u64Number of ImmediateReconnect (0x21) responses.
heartbeat_abandon_tunnel_count: u64Number of AbandonTunnel (0x27) responses.
heartbeat_delayed_reconnect_count: u64Number of DelayedReconnect (0x29) responses.
heartbeat_no_response_count: u64Number of NoResponse (timeout simulation) instances.
heartbeat_fault_rate: f64Heartbeat fault rate (non-Continue / total). 0.0-1.0.
cache_hits_total: u64Total cache hits.
cache_misses_total: u64Total cache misses.
cache_hit_rate: f64Cache hit rate (0.0-1.0).
cache_lookups_total: u64Total cache lookups.
cache_evictions_total: u64Total cache evictions (LRU).
cache_expirations_total: u64Total cache expirations (TTL).
cache_updates_total: u64Total cache updates.
cache_indication_updates: u64Cache updates from L_Data.ind indications.
cache_write_updates: u64Cache updates from GroupValueWrite.
cache_entries_current: u64Current number of cached entries.
error_tracker_successes_total: u64Total successful sends across all channels.
error_tracker_failures_total: u64Total failed sends across all channels.
error_tracker_error_rate: f64Overall error rate (0.0-1.0).
error_tracker_events_total: u64Total events (successes + failures).
error_tracker_consecutive_triggers: u64Number of times consecutive error threshold was exceeded.
error_tracker_rate_triggers: u64Number of times sliding window rate threshold was exceeded.
filter_chain_frames_sent: u64Total frames processed in send direction.
filter_chain_frames_received: u64Total frames processed in recv direction.
filter_chain_frames_dropped: u64Total frames dropped by the filter chain.
filter_chain_frames_queued: u64Total frames queued by the filter chain.
filter_chain_total_delay_us: u64Total accumulated delay (microseconds).
filter_chain_bypass_count: u64Total filter chain bypass count (chain disabled).
pace_immediate_pass: u64Frames that passed immediately (no delay needed).
pace_delayed_frames: u64Frames that were delayed for bus timing.
pace_dropped_frames: u64Frames dropped by the pace filter.
pace_total_delay_us: u64Total delay applied by pace filter (microseconds).
pace_busy_to_idle: u64Busy→Idle state transitions.
pace_idle_to_down: u64Idle→Down state transitions.
queue_direct_pass: u64Frames that passed directly (no queuing).
queue_queued_frames: u64Frames enqueued due to backpressure.
queue_dropped_full: u64Frames dropped because queue was full.
queue_evicted_frames: u64Frames evicted from lower-priority queues.
queue_drained_frames: u64Frames drained from the queue.
queue_high_priority: u64High-priority frames processed.
queue_normal_priority: u64Normal-priority frames processed.
queue_low_priority: u64Low-priority frames processed.
retry_direct_pass: u64Frames that passed directly (circuit closed).
retry_circuit_open_drops: u64Frames dropped because circuit breaker was open.
retry_probe_frames: u64Probe frames sent during half-open state.
retry_attempts: u64Total retry attempts.
retry_successes: u64Successful transmissions tracked by retry filter.
retry_failures: u64Failed transmissions tracked by retry filter.
retry_state_transitions: u64Circuit breaker state transitions.
retry_circuit_trips: u64Number of times circuit breaker tripped (Closed→Open).
retry_circuit_resets: u64Number of times circuit breaker reset (HalfOpen→Closed).
tunnel_frames_sent_total: u64Total frames sent across all connections (sequence tracker).
tunnel_frames_received_total: u64Total frames received across all connections.
tunnel_duplicates_total: u64Total duplicate frames detected.
tunnel_out_of_order_total: u64Total out-of-order frames detected.
tunnel_fatal_desyncs_total: u64Total fatal desync events.
tunnel_resets_total: u64Total sequence resets.
tunnel_fsm_transitions_total: u64Total FSM state transitions across all connections.