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, String? userId, bool? isOpen, required DateTime touched, List<
LogEntry> ? logs, List<QueryLogEntry> ? queries, List<MessageLogEntry> ? messages}) -
factory
-
SessionLogEntry.fromJson(Map<
String, dynamic> jsonSerialization) -
factory
Properties
- duration ↔ double?
-
The running time of this session, in seconds. 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
-
logs
↔ List<
LogEntry> ? -
Application log lines for this session.
getter/setter pair
-
messages
↔ List<
MessageLogEntry> ? -
Streaming message log lines for this session.
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
-
queries
↔ List<
QueryLogEntry> ? -
Query log lines for 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
- userId ↔ String?
-
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
Methods
-
copyWith(
{int? id, String? serverId, DateTime? time, String? module, String? endpoint, String? method, double? duration, int? numQueries, bool? slow, String? error, String? stackTrace, String? userId, bool? isOpen, DateTime? touched, List< LogEntry> ? logs = const _isc.$UndefinedList<_iv7ld46g.LogEntry>(), List<QueryLogEntry> ? queries = const _isc.$UndefinedList<_inqjskye.QueryLogEntry>(), List<MessageLogEntry> ? messages = const _isc.$UndefinedList<_iky1nb92.MessageLogEntry>()}) → SessionLogEntry - Returns a shallow copy of this SessionLogEntry with some or all fields replaced by the given arguments.
-
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.
-
toJsonForProtocol(
) → Map< String, dynamic> - Returns a JSON structure of the model, optimized for Protocol communication.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited