Skip to main content

Mountain/IPC/Enhanced/ConnectionPool/
PoolStats.rs

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