ServerHealth constructor

const ServerHealth({
  1. String status = 'healthy',
  2. String? version,
  3. int connections = 0,
  4. required bool isRunning,
  5. required int connectedSessions,
  6. required int registeredTools,
  7. required int registeredResources,
  8. required int registeredPrompts,
  9. required DateTime startTime,
  10. required Duration uptime,
  11. required Map<String, dynamic> metrics,
})

Implementation

const ServerHealth({
  this.status = 'healthy',
  this.version,
  this.connections = 0,
  required this.isRunning,
  required this.connectedSessions,
  required this.registeredTools,
  required this.registeredResources,
  required this.registeredPrompts,
  required this.startTime,
  required this.uptime,
  required this.metrics,
});