11cb0ef41Sopenharmony_ci# Class: PoolStats
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_ciAggregate stats for a [Pool](Pool.md) or [BalancedPool](BalancedPool.md).
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ci## `new PoolStats(pool)`
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ciArguments:
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ci* **pool** `Pool` - Pool or BalancedPool from which to return stats.
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ci## Instance Properties
121cb0ef41Sopenharmony_ci
131cb0ef41Sopenharmony_ci### `PoolStats.connected`
141cb0ef41Sopenharmony_ci
151cb0ef41Sopenharmony_ciNumber of open socket connections in this pool.
161cb0ef41Sopenharmony_ci
171cb0ef41Sopenharmony_ci### `PoolStats.free`
181cb0ef41Sopenharmony_ci
191cb0ef41Sopenharmony_ciNumber of open socket connections in this pool that do not have an active request.
201cb0ef41Sopenharmony_ci
211cb0ef41Sopenharmony_ci### `PoolStats.pending`
221cb0ef41Sopenharmony_ci
231cb0ef41Sopenharmony_ciNumber of pending requests across all clients in this pool.
241cb0ef41Sopenharmony_ci
251cb0ef41Sopenharmony_ci### `PoolStats.queued`
261cb0ef41Sopenharmony_ci
271cb0ef41Sopenharmony_ciNumber of queued requests across all clients in this pool.
281cb0ef41Sopenharmony_ci
291cb0ef41Sopenharmony_ci### `PoolStats.running`
301cb0ef41Sopenharmony_ci
311cb0ef41Sopenharmony_ciNumber of currently active requests across all clients in this pool.
321cb0ef41Sopenharmony_ci
331cb0ef41Sopenharmony_ci### `PoolStats.size`
341cb0ef41Sopenharmony_ci
351cb0ef41Sopenharmony_ciNumber of active, pending, or queued requests across all clients in this pool.
36