ToolEvent class

Constructors

ToolEvent({required int id, required int tsMs, required String correlationId, required String tool, required ToolOutcome outcome, required List<String> argKeys, required int durationMs, required int resultBytes, String? errorKind, Map<String, Object?> diagnostics = const {}})

Properties

argKeys → List<String>
final
correlationId → String
final
diagnostics → Map<String, Object?>
Local-only fields for diagnosing a slow or failed call; never part of anything shipped.
final
durationMs → int
final
errorKind → String?
final
hashCode → int
The hash code for this object.
no setterinherited
id → int
final
outcome → ToolOutcome
final
resultBytes → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tool → String
final
tsMs → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toRow() → Map<String, Object?>
Row form consumed by summarizeUsage, plus the diagnostics.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

baseOnly(Map<String, Object?> row) → Map<String, Object?>
row without its diagnostics.
fromRow(Map<String, Object?> r) → ToolEvent?

Constants

baseKeys → const Set<String>
The columns every consumer of the rows knows; everything else in a stored row is diagnostics.