DatumMetrics class

An immutable snapshot of key synchronization statistics.

Annotations
  • @immutable

Constructors

DatumMetrics({int totalSyncOperations = 0, int successfulSyncs = 0, int failedSyncs = 0, int conflictsDetected = 0, int conflictsResolvedAutomatically = 0, int userSwitchCount = 0, Set<String> activeUsers = const {}, int totalBytesPushed = 0, int totalBytesPulled = 0})
Creates a DatumMetrics snapshot.
const

Properties

activeUsers Set<String>
The set of unique user IDs that have been active during the app's lifetime.
final
conflictsDetected int
Total number of data conflicts detected across all syncs.
final
conflictsResolvedAutomatically int
Total number of conflicts resolved automatically by a resolver.
final
failedSyncs int
Sync cycles that had at least one failed operation or ended in an error.
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
successfulSyncs int
Sync cycles that completed without any failed operations.
final
totalBytesPulled int
The total cumulative number of bytes pulled from the remote across all users.
final
totalBytesPushed int
The total cumulative number of bytes pushed to the remote across all users.
final
totalSyncOperations int
Total number of sync cycles started.
final
userSwitchCount int
Total number of times the active user was switched.
final

Methods

copyWith({int? totalSyncOperations, int? successfulSyncs, int? failedSyncs, int? conflictsDetected, int? conflictsResolvedAutomatically, int? userSwitchCount, Set<String>? activeUsers, int? totalBytesPushed, int? totalBytesPulled}) DatumMetrics
Creates a copy of this metrics object with updated values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.

Operators

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