SessionLogEntry class abstract

Log entry for a session.

Constructors

SessionLogEntry({int? id, required String serverId, required DateTime time, String? module, String? endpoint, String? method, double? duration, int? numQueries, bool? slow, String? error, String? stackTrace, int? authenticatedUserId, bool? isOpen, required DateTime touched})
factory
SessionLogEntry.fromJson(Map<String, dynamic> jsonSerialization, SerializationManager serializationManager)
factory

Properties

authenticatedUserId int?
The id of an authenticated user associated with this session. The user id is only set if it has been requested during the session. This means that it can be null, even though the session was performed by an authenticated user.
getter/setter pair
duration double?
The running time of this session. May be null if the session is still active.
getter/setter pair
endpoint String?
The endpoint this session is associated with, if any.
getter/setter pair
error String?
If the session ends with an exception, the error field will be set.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int?
The database id, set if the object has been inserted into the database or if it has been fetched from the database. Otherwise, the id will be null.
getter/setter pair
isOpen bool?
True if the session is still open.
getter/setter pair
method String?
The method this session is associated with, if any.
getter/setter pair
module String?
The module this session is associated with, if any.
getter/setter pair
numQueries int?
The number of queries performed during this session.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverId String
The id of the server that handled this session.
getter/setter pair
slow bool?
True if this session was slow to complete.
getter/setter pair
stackTrace String?
If the session ends with an exception, a stack trace will be set.
getter/setter pair
time DateTime
The starting time of this session.
getter/setter pair
touched DateTime
Timestamp of the last time this record was modified.
getter/setter pair

Methods

allToJson() → dynamic
Returns a serialized JSON structure of the model which also includes fields used by the database.
inherited
copyWith({int? id, String? serverId, DateTime? time, String? module, String? endpoint, String? method, double? duration, int? numQueries, bool? slow, String? error, String? stackTrace, int? authenticatedUserId, bool? isOpen, DateTime? touched}) SessionLogEntry
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a serialized JSON structure of the model, ready to be sent through the API. This does not include fields that are marked as database only.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited