NetworkHealthMonitor class
Comprehensive network health monitoring system
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearAllData(
) → void - Clear all monitoring data
-
clearOldData(
{Duration? maxAge}) → void - Clear data older than specified duration
-
exportDiagnostics(
) → Map< String, dynamic> - Export detailed diagnostics data
-
getAllEndpointMetrics(
) → Map< String, NetworkHealthMetrics> - Get metrics for all monitored endpoints
-
getCircuitBreakerActivity(
{Duration? timeWindow}) → Map< String, dynamic> - Get circuit breaker activity summary
-
getEndpointMetrics(
String endpoint) → NetworkHealthMetrics - Get comprehensive health metrics for an endpoint
-
getNetworkQualityTrend(
{Duration? timeWindow, Duration? bucketSize}) → List< Map< String, dynamic> > - Get network quality trends
-
getOverallHealthScore(
) → double - Get overall system health score (0.0 to 1.0)
-
getRecentErrorPatterns(
{Duration? timeWindow}) → Map< String, int> - Get recent error patterns
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordCircuitBreakerEvent(
{required String endpoint, required String fromState, required String toState, required String reason}) → void - Record a circuit breaker state change
-
recordRequest(
{required String endpoint, required int responseTimeMs, required bool success, String? errorType}) → void - Record a network request completion
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → NetworkHealthMonitor
-
no setter