SessionLogEntry class abstract

Log entry for a session.

Implemented types

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)
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 id column of the row. Can be null if this row is not yet stored in the database.
getter/setter pairoverride
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
table Table
The table that this row belongs to.
no setteroverride
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

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 which also includes fields used by the database.
override
toJsonForProtocol() Map<String, dynamic>
Returns a JSON structure of the model, optimized for Protocol communication.
override
toString() String
A string representation of this object.
override

Operators

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

Static Properties

t SessionLogEntryTable
final

Constants

db → const SessionLogEntryRepository