MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / getSystemStatus

Method getSystemStatus

internal/dashboard/dashboard.go:138–149  ·  view source on GitHub ↗

getSystemStatus determines overall system health

()

Source from the content-addressed store, hash-verified

136
137// getSystemStatus determines overall system health
138func (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
152func (dc *DashboardCollector) calculateCurrentByteRate() float64 {

Callers 1

CollectDashboardDataMethod · 0.95

Calls 2

GetCurrentMethod · 0.80
IsHealthyMethod · 0.80

Tested by

no test coverage detected