# Google Cloud Spanner v1 API - Class SessionPool.SessionPoolSegmentStatistics (5.13.0-beta07)

5.13.0-beta07 5.13.0-beta06 5.12.0 (latest) 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.15.1 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0

    public sealed class SessionPool.SessionPoolSegmentStatistics

Reference documentation and code samples for the Google Cloud Spanner v1 API class SessionPool.SessionPoolSegmentStatistics.

A snapshot of statistics for a [SessionPool.SessionPoolSegmentKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentKey) within a [SessionPool](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.SessionPool).

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> SessionPool.SessionPoolSegmentStatistics

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)

## Namespace

[Google.Cloud.Spanner.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1)

## Assembly

Google.Cloud.Spanner.V1.dll

## Properties

### ActiveSessionCount

    public int ActiveSessionCount { get; }

The number of active or requested sessions. This is the difference between the number of successful or
pending session acquisition requests and the number of released sessions. If this exceeds
[MaximumActiveSessions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.SessionPoolOptions#Google_Cloud_Spanner_V1_SessionPoolOptions_MaximumActiveSessions) it indicates that some acquisition calls are currently
pending; the limit is obeyed separately, in terms of how many session creation requests the pool has made to the server.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### DatabaseName

    public DatabaseName DatabaseName { get; }

The database associated with the pool this set of statistics corresponds.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Google.Cloud.Spanner.Common.V1.DatabaseName` |   |

### DatabaseRole

    public string DatabaseRole { get; }

The database role of the sessions in the pool this set of statistics corresponds to.May be null,
in which case sessions are will either have the default role, if fine-grained access control is
configured, or no role at all.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Healthy

    public bool Healthy { get; }

Whether the pool is healthy or not.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### InFlightCreationCount

    public int InFlightCreationCount { get; }

The number of session creation (or refresh, or transaction creation) requests in flight.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### PendingAcquisitionCount

    public int PendingAcquisitionCount { get; }

The number of client calls awaiting sessions.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### PoolCount

    public int PoolCount { get; }

The number of sessions in the pool.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### Shutdown

    public bool Shutdown { get; }

Whether the pool has been shut down or not. (This indicates the start
of shutdown, not necessarily the end.)

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

## Methods

### ToString()

    public override string ToString()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

**Overrides** [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)