AccountStats class
What an account has sent and received over its lifetime, as the mediator counted it. Every member is optional: a mediator reports what it keeps, and a counter absent from a response was not kept rather than zero. Counters survive restarts and are not reset by reading them; removing an account discards them.
Constructors
- AccountStats({int? messagesReceived, int? messagesSent, int? bytesReceived, int? bytesSent, ProtocolCounts? receivedByProtocol, ProtocolCounts? sentByProtocol})
-
const
-
AccountStats.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- bytesReceived → int?
-
Total size of the messages counted by messagesReceived.
final
- bytesSent → int?
-
Total size of the messages counted by messagesSent.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- messagesReceived → int?
-
Messages the mediator accepted addressed to this account.
final
- messagesSent → int?
-
Messages the mediator accepted from this account.
final
- receivedByProtocol → ProtocolCounts?
-
messagesReceived split by the wire protocol the message arrived in.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sentByProtocol → ProtocolCounts?
-
messagesSent split by the wire protocol the message was sent in.
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