ActiveUserSessionsEvent#

class gafaelfawr.events.ActiveUserSessionsEvent(**data)#

Bases: EventPayload

Current count of the number of active user sessions.

These correspond to unexpired session tokens, which in turn correspond to unexpired user browser session cookies.

Notes

This is really a proper metric that is measured periodically, not an event. For now, Gafaelfawr uses the event system to log this metric since that’s the system we have in place. If we later have a proper metrics system for storing measurements, this should move to that.

Parameters:

data (Any)

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Attributes Documentation

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].