SessionLogEntry class
Log entry for a session.
- Inheritance
-
- Object
- SerializableEntity
- TableRow
- SessionLogEntry
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})
-
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 id column of the row. Can be null if this row is not yet stored in
the database.
getter/setter pairinherited
- 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
- tableName → String
-
The name of the table that contains this row.
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
-
allToJson(
) → Map< String, dynamic> -
Returns a serialized JSON structure of the entity which also includes
fields used by the database.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setColumn(
String columnName, dynamic value) → void -
Sets the value of a column by its name. Used in communication with the
database.
override
-
toJson(
) → Map< String, dynamic> -
Returns a serialized JSON structure of the entity, ready to be sent
through the API. This does not include fields that are marked as
database only.
override
-
toJsonForDatabase(
) → Map< String, dynamic> -
Will create a serialization of with the fields that are stored in the
database only.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- t → SessionLogEntryTable
-
final
Static Methods
-
count(
Session session, {SessionLogEntryExpressionBuilder? where, int? limit, bool useCache = true, Transaction? transaction}) → Future< int> -
delete(
Session session, {required SessionLogEntryExpressionBuilder where, Transaction? transaction}) → Future< int> -
deleteRow(
Session session, SessionLogEntry row, {Transaction? transaction}) → Future< bool> -
find(
Session session, {SessionLogEntryExpressionBuilder? where, int? limit, int? offset, Column? orderBy, List< Order> ? orderByList, bool orderDescending = false, bool useCache = true, Transaction? transaction}) → Future<List< SessionLogEntry> > -
findById(
Session session, int id) → Future< SessionLogEntry?> -
findSingleRow(
Session session, {SessionLogEntryExpressionBuilder? where, int? offset, Column? orderBy, bool orderDescending = false, bool useCache = true, Transaction? transaction}) → Future< SessionLogEntry?> -
insert(
Session session, SessionLogEntry row, {Transaction? transaction}) → Future< void> -
update(
Session session, SessionLogEntry row, {Transaction? transaction}) → Future< bool>