getSystemStatus determines overall system health
()
| 136 | |
| 137 | // getSystemStatus determines overall system health |
| 138 | func (dc *DashboardCollector) getSystemStatus() string { |
| 139 | // Check if we have healthy sessions |
| 140 | if dc.connectionManager != nil { |
| 141 | if session := dc.connectionManager.GetCurrent(); session != nil { |
| 142 | if session.IsHealthy() { |
| 143 | return "running" |
| 144 | } |
| 145 | return "degraded" |
| 146 | } |
| 147 | } |
| 148 | return "error" |
| 149 | } |
| 150 | |
| 151 | // calculateCurrentByteRate estimates current byte transfer rate |
| 152 | func (dc *DashboardCollector) calculateCurrentByteRate() float64 { |
no test coverage detected