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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSessionPool.SessionPoolSegmentStatistics\u003c/code\u003e class provides a snapshot of statistics for a \u003ccode\u003eSessionPool.SessionPoolSegmentKey\u003c/code\u003e within a \u003ccode\u003eSessionPool\u003c/code\u003e in the Google Cloud Spanner v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for \u003ccode\u003eSessionPool.SessionPoolSegmentStatistics\u003c/code\u003e is 5.0.0-beta05, with multiple previous versions ranging from 3.5.0 to 5.0.0-beta04.\u003c/p\u003e\n"],["\u003cp\u003eThis class includes properties like \u003ccode\u003eActiveSessionCount\u003c/code\u003e, \u003ccode\u003eDatabaseName\u003c/code\u003e, \u003ccode\u003eDatabaseRole\u003c/code\u003e, \u003ccode\u003eHealthy\u003c/code\u003e, \u003ccode\u003eInFlightCreationCount\u003c/code\u003e, \u003ccode\u003ePendingAcquisitionCount\u003c/code\u003e, \u003ccode\u003ePoolCount\u003c/code\u003e, and \u003ccode\u003eShutdown\u003c/code\u003e, all of which provide information on various session pool attributes and their statuses.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from the base .NET \u003ccode\u003eobject\u003c/code\u003e class and includes an overridden \u003ccode\u003eToString()\u003c/code\u003e method to provide a string representation of the object.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Spanner v1 API - Class SessionPool.SessionPoolSegmentStatistics (5.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/5.0.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.6.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.5.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.4.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.3.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.2.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.1.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.0.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.15.1/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.14.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.13.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.12.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.11.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.10.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.9.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.8.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.7.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.6.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.5.0/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentStatistics) \n\n public sealed class SessionPool.SessionPoolSegmentStatistics\n\nReference documentation and code samples for the Google Cloud Spanner v1 API class SessionPool.SessionPoolSegmentStatistics.\n\nA snapshot of statistics for a [SessionPool.SessionPoolSegmentKey](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.SessionPool.SessionPoolSegmentKey) within a [SessionPool](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.SessionPool). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SessionPool.SessionPoolSegmentStatistics \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)\n\nNamespace\n---------\n\n[Google.Cloud.Spanner.V1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Spanner.V1.dll\n\nProperties\n----------\n\n### ActiveSessionCount\n\n public int ActiveSessionCount { get; }\n\nThe number of active or requested sessions. This is the difference between the number of successful or\npending session acquisition requests and the number of released sessions. If this exceeds\n[MaximumActiveSessions](/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\npending; the limit is obeyed separately, in terms of how many session creation requests the pool has made to the server.\n\n### DatabaseName\n\n public DatabaseName DatabaseName { get; }\n\nThe database associated with the pool this set of statistics corresponds.\n\n### DatabaseRole\n\n public string DatabaseRole { get; }\n\nThe database role of the sessions in the pool this set of statistics corresponds to.May be null,\nin which case sessions are will either have the default role, if fine-grained access control is\nconfigured, or no role at all.\n\n### Healthy\n\n public bool Healthy { get; }\n\nWhether the pool is healthy or not.\n\n### InFlightCreationCount\n\n public int InFlightCreationCount { get; }\n\nThe number of session creation (or refresh, or transaction creation) requests in flight.\n\n### PendingAcquisitionCount\n\n public int PendingAcquisitionCount { get; }\n\nThe number of client calls awaiting sessions.\n\n### PoolCount\n\n public int PoolCount { get; }\n\nThe number of sessions in the pool.\n\n### Shutdown\n\n public bool Shutdown { get; }\n\nWhether the pool has been shut down or not. (This indicates the start\nof shutdown, not necessarily the end.)\n\nMethods\n-------\n\n### ToString()\n\n public override string ToString()\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)"]]