Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
36 lines
805 B
Plaintext
36 lines
805 B
Plaintext
# Class: PoolStats
|
|
|
|
Aggregate stats for a [Pool](/docs/docs/api/Pool.md) or [BalancedPool](/docs/docs/api/BalancedPool.md).
|
|
|
|
## `new PoolStats(pool)`
|
|
|
|
Arguments:
|
|
|
|
* **pool** `Pool` - Pool or BalancedPool from which to return stats.
|
|
|
|
## Instance Properties
|
|
|
|
### `PoolStats.connected`
|
|
|
|
Number of open socket connections in this pool.
|
|
|
|
### `PoolStats.free`
|
|
|
|
Number of open socket connections in this pool that do not have an active request.
|
|
|
|
### `PoolStats.pending`
|
|
|
|
Number of pending requests across all clients in this pool.
|
|
|
|
### `PoolStats.queued`
|
|
|
|
Number of queued requests across all clients in this pool.
|
|
|
|
### `PoolStats.running`
|
|
|
|
Number of currently active requests across all clients in this pool.
|
|
|
|
### `PoolStats.size`
|
|
|
|
Number of active, pending, or queued requests across all clients in this pool.
|