public sealed class SessionPoolSegmentStatistics
Reference documentation and code samples for the Google Cloud Spanner v1 API class SessionPool.SessionPoolSegmentStatistics.
A snapshot of statistics for a SessionPool.SessionPoolSegmentKey within a SessionPool.
Namespace
Google.Cloud.Spanner.V1Assembly
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.
Type | Description |
Int32 |
DatabaseName
public DatabaseName DatabaseName { get; }
The database associated with the pool this set of statistics corresponds.
Type | Description |
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.
Type | Description |
String |
Healthy
public bool Healthy { get; }
Whether the pool is healthy or not.
Type | Description |
Boolean |
InFlightCreationCount
public int InFlightCreationCount { get; }
The number of session creation (or refresh, or transaction creation) requests in flight.
Type | Description |
Int32 |
PendingAcquisitionCount
public int PendingAcquisitionCount { get; }
The number of client calls awaiting sessions.
Type | Description |
Int32 |
ReadPoolCount
public int ReadPoolCount { get; }
The number of read-only sessions in the pool.
Type | Description |
Int32 |
ReadWritePoolCount
public int ReadWritePoolCount { get; }
The number of read/write sessions in the pool.
Type | Description |
Int32 |
ReadWriteTransactionRequests
public long ReadWriteTransactionRequests { get; }
The number of times a read/write transaction was requested.
Type | Description |
Int64 |
ReadWriteTransactionRequestsPrewarmed
public long ReadWriteTransactionRequestsPrewarmed { get; }
The number of times a read/write transaction was satisfied with a pre-warmed transaction.
Type | Description |
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.)
Type | Description |
Boolean |
Methods
ToString()
public override string ToString()
Type | Description |
String |