GraphQL: Add nodehours info to footprints query

This commit is contained in:
Lou Knauer
2022-03-16 16:11:28 +01:00
parent 1b66030525
commit 5235feb1d6
6 changed files with 194 additions and 48 deletions

View File

@@ -33,6 +33,11 @@ type FloatRange struct {
To float64 `json:"to"`
}
type Footprints struct {
Nodehours []schema.Float `json:"nodehours"`
Metrics []*MetricFootprints `json:"metrics"`
}
type HistoPoint struct {
Count int `json:"count"`
Value int `json:"value"`
@@ -103,8 +108,8 @@ type MetricConfig struct {
}
type MetricFootprints struct {
Name string `json:"name"`
Footprints []schema.Float `json:"footprints"`
Metric string `json:"metric"`
Data []schema.Float `json:"data"`
}
type NodeMetrics struct {