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:
@@ -42,6 +42,13 @@ type InternalMetricStore struct{}
|
||||
|
||||
var MetricStoreHandle *InternalMetricStore
|
||||
|
||||
// HealthCheck delegates to the internal MemoryStore's HealthCheck.
|
||||
func (ccms *InternalMetricStore) HealthCheck(cluster string,
|
||||
nodes []string, metrics []string,
|
||||
) (map[string]HealthCheckResult, error) {
|
||||
return GetMemoryStore().HealthCheck(cluster, nodes, metrics)
|
||||
}
|
||||
|
||||
// TestLoadDataCallback allows tests to override LoadData behavior for testing purposes.
|
||||
// When set to a non-nil function, LoadData will call this function instead of the default implementation.
|
||||
var TestLoadDataCallback func(job *schema.Job, metrics []string, scopes []schema.MetricScope, ctx context.Context, resolution int) (schema.JobData, error)
|
||||
|
||||
Reference in New Issue
Block a user