MonitorEvent class

One observed step in the life of one message at the mediator. Carries metadata only — never a message body.

Constructors

MonitorEvent({required String occurredAt, required TrafficDirection direction, required TrafficStage stage, required TrafficChannel channel, required WireProtocol protocol, String? msgId, Vid? from, Vid? to, int? size, String? messageType, TrafficOutcome? outcome, int? latencyMs})
const
MonitorEvent.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

channel → TrafficChannel
final
direction → TrafficDirection
final
from → String?
The sender, where the mediator knows it.
final
hashCode → int
The hash code for this object.
no setterinherited
latencyMs → int?
For delivered and forwarded: milliseconds since the message was stored.
final
messageType → String?
The plaintext message type, present only when the mediator itself was the addressee and read it (a routing forward, a pickup request, a trust-task type URI, a trust ping). Absent for end-to-end-encrypted traffic the mediator only relays.
final
msgId → String?
The stored message's identifier, once it has one; correlates the events of one message and matches MessageMeta.msgId.
final
occurredAt → String
When the step happened, with sub-second precision where the mediator has it.
final
outcome → TrafficOutcome?
Present when stage is refused, and on any other stage that failed.
final
protocol → WireProtocol
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int?
Frame size in bytes.
final
stage → TrafficStage
final
to → String?
The recipient, where the mediator knows it.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → String
A string representation of this object.
inherited

Operators

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