Class SessionPool.DatabaseStatistics (3.13.0)

public sealed class DatabaseStatistics

A snapshot of statistics for one database within a SessionPool.

Inheritance

Object > SessionPool.DatabaseStatistics

Namespace

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 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
TypeDescription
Int32

DatabaseName

public DatabaseName DatabaseName { get; }

The database this set of statistics corresponds to.

Property Value
TypeDescription
DatabaseName

Healthy

public bool Healthy { get; }

Whether the pool is healthy or not.

Property Value
TypeDescription
Boolean

InFlightCreationCount

public int InFlightCreationCount { get; }

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

Property Value
TypeDescription
Int32

PendingAcquisitionCount

public int PendingAcquisitionCount { get; }

The number of client calls awaiting sessions.

Property Value
TypeDescription
Int32

ReadPoolCount

public int ReadPoolCount { get; }

The number of read-only sessions in the pool.

Property Value
TypeDescription
Int32

ReadWritePoolCount

public int ReadWritePoolCount { get; }

The number of read/write sessions in the pool.

Property Value
TypeDescription
Int32

ReadWriteTransactionRequests

public long ReadWriteTransactionRequests { get; }

The number of times a read/write transaction was requested.

Property Value
TypeDescription
Int64

ReadWriteTransactionRequestsPrewarmed

public long ReadWriteTransactionRequestsPrewarmed { get; }

The number of times a read/write transaction was satisfied with a pre-warmed transaction.

Property Value
TypeDescription
Int64

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
TypeDescription
Boolean

Methods

ToString()

public override string ToString()
Returns
TypeDescription
String
Overrides