AdminSessionsStatsResponse

Properties

Name

Type

Description

Notes

total

int

Total number of live sessions.

by_transport

Dict[str, int]

Counters partitioned by `transport` (keycloak, anonymous, spoof, unknown).

anonymous_count

int

Number of guest / anonymous sessions.

azure_cache_count

int

Number of distinct Azure tokens currently cached for federation exchange. Approximate; not a user count.

computed_at

datetime

When the cached stats were computed.

cache_age_seconds

int

Wall-clock age of the cached stats, in seconds. Useful for rendering freshness in a polling UI.

session_default_ttl

str

Configured default TTL for session keys (Go duration string, e.g. `168h0m0s`).

Example

from h2ogpte.rest_sync.models.admin_sessions_stats_response import AdminSessionsStatsResponse

# TODO update the JSON string below
json = "{}"
# create an instance of AdminSessionsStatsResponse from a JSON string
admin_sessions_stats_response_instance = AdminSessionsStatsResponse.from_json(json)
# print the JSON string representation of the object
print(AdminSessionsStatsResponse.to_json())

# convert the object into a dict
admin_sessions_stats_response_dict = admin_sessions_stats_response_instance.to_dict()
# create an instance of AdminSessionsStatsResponse from a dict
admin_sessions_stats_response_from_dict = AdminSessionsStatsResponse.from_dict(admin_sessions_stats_response_dict)