From 4cc8f7f3a95ec33fc238321c6e0af2c6361f1da5 Mon Sep 17 00:00:00 2001 From: Volodymyr Stoiko Date: Sun, 26 Jan 2025 23:21:01 +0200 Subject: [PATCH 1/2] Add nodes and pods info to hub health --- health.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/health.go b/health.go index 6e80371..09978d7 100644 --- a/health.go +++ b/health.go @@ -38,6 +38,7 @@ type HealthWorkerLicenseData struct { type HealthHub struct { Workers []HealthHubWorker `json:"workers"` + Nodes []HealthHubNode `json:"nodes"` NodeName string `json:"nodeName"` ClusterID string `json:"clusterID"` Version string `json:"version"` @@ -54,3 +55,8 @@ type HealthHubWorker struct { Addr string `json:"addr"` PodName string `json:"podName"` } + +type HealthHubNode struct { + NodeName string `json:"nodeName"` + PodCount int `json:"podCount"` +} From 352d51decb9dcb600c6593ee42d42c3fe4ff0c7c Mon Sep 17 00:00:00 2001 From: Volodymyr Stoiko Date: Tue, 3 Jun 2025 18:43:47 +0300 Subject: [PATCH 2/2] restore --- api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api.go b/api.go index b04ee6e..8cc2c8f 100644 --- a/api.go +++ b/api.go @@ -1036,6 +1036,7 @@ type TcpReader interface { GetEmitter() Emitter GetIsClosed() bool GetCapture() *Capture + GetLayer4() string Rewind() Lock() Unlock()