Add healthCheck support for external CCMS

This commit is contained in:
Aditya Ujeniya
2026-02-16 16:57:17 +01:00
parent 0dd894890f
commit 2eeefc2720
6 changed files with 100 additions and 5 deletions

View File

@@ -133,6 +133,12 @@ func (m *MemoryStore) GetHealthyMetrics(selector []string, expectedMetrics []str
return degradedList, missingList, nil
}
type HealthCheckReq struct {
Cluster string `json:"cluster" example:"fritz"`
Nodes []string `json:"nodes"`
MetricNames []string `json:"metric-names"`
}
// HealthCheck evaluates multiple nodes against a set of expected metrics
// and returns a monitoring state per node.
//