Skip to main content

Mountain/IPC/Enhanced/ConnectionPool/
PoolStats.rs

1
2//! Aggregated pool counters surfaced to the dashboard - total
3//! / active / idle / healthy connection counts, queue size,
4//! average wait time, total / successful operation tallies,
5//! and the rolled-up error rate.
6
7use serde::{Deserialize, Serialize};
8
9#[derive(Debug, Clone, Serialize, Deserialize)]
10pub struct Struct {
11	pub total_connections:usize,
12
13	pub active_connections:usize,
14
15	pub idle_connections:usize,
16
17	pub healthy_connections:usize,
18
19	pub max_connections:usize,
20
21	pub min_connections:usize,
22
23	pub wait_queue_size:usize,
24
25	pub average_wait_time_ms:f64,
26
27	pub total_operations:u64,
28
29	pub successful_operations:u64,
30
31	pub error_rate:f64,
32}