|
|
|
@@ -9,7 +9,7 @@ import ( |
|
|
|
|
|
|
|
// ServiceStatus represents the health of an external service (e.g. Kafka, database). |
|
|
|
type ServiceStatus struct { |
|
|
|
Status string `json:"status"` // "up", "down", "unknown" |
|
|
|
Status string `json:"status"` // "up", "down", "unknown" |
|
|
|
Message string `json:"message,omitempty"` |
|
|
|
} |
|
|
|
|
|
|
|
@@ -56,6 +56,7 @@ func (b *BaseHealth) GetActiveWriters(m *kafkaclient.KafkaManager) { |
|
|
|
|
|
|
|
func (b *BaseHealth) GetActiveBeacons(m *AppState) { |
|
|
|
beacons := m.GetAllBeacons() |
|
|
|
b.ActiveBeacons = []string{} |
|
|
|
for beacon := range beacons { |
|
|
|
b.ActiveBeacons = append(b.ActiveBeacons, beacon) |
|
|
|
} |
|
|
|
|