ConnectionHealthMetrics class

Connection health metrics and tracking

Properties

consecutiveErrors int
Number of consecutive errors
no setter
hasFailed bool
Check if connection has failed
no setter
hashCode int
The hash code for this object.
no setterinherited
healthStateChanges Stream<ConnectionHealthState>
Stream of health state changes
no setter
isHealthy bool
Check if connection is considered healthy
no setter
lastError → dynamic
Last error that occurred
no setter
lastErrorTime DateTime?
Time of last error
no setter
lastHealthyTime DateTime
Last time connection was healthy
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ConnectionHealthState
Current health state
no setter
successfulOperations int
Number of successful operations
no setter

Methods

dispose() → void
Dispose of resources
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordClosure() → void
Record connection closure
recordError(dynamic error) → void
Record an error
recordPathUpdate() → void
Record path update (connection migration success)
recordSuccess() → void
Record a successful operation
toString() String
A string representation of this object.
override

Operators

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