Adapt job iterator

* Add option to also load Job Metric Data
* Validate Job Metric Data
* Allow null values in series array
This commit is contained in:
Jan Eitzinger
2023-03-31 15:28:35 +02:00
parent bfee9d847b
commit 559445900d
6 changed files with 71 additions and 29 deletions

View File

@@ -30,7 +30,12 @@ type ArchiveBackend interface {
GetClusters() []string
Iter() <-chan *schema.JobMeta
Iter(loadMetricData bool) <-chan JobContainer
}
type JobContainer struct {
Meta *schema.JobMeta
Data *schema.JobData
}
var cache *lrucache.Cache = lrucache.New(128 * 1024 * 1024)