mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-02-18 00:41:46 +01:00
Add healthCheck support for external CCMS
This commit is contained in:
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user