Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/Enhanced/ConnectionPool/
PoolStats.rs

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