mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-10-30 23:45:06 +01:00 
			
		
		
		
	SubCluster-specific thresholds
This commit is contained in:
		| @@ -97,15 +97,16 @@ type JobsStatistics struct { | ||||
| } | ||||
|  | ||||
| type MetricConfig struct { | ||||
| 	Name        string             `json:"name"` | ||||
| 	Unit        string             `json:"unit"` | ||||
| 	Scope       schema.MetricScope `json:"scope"` | ||||
| 	Aggregation *string            `json:"aggregation"` | ||||
| 	Timestep    int                `json:"timestep"` | ||||
| 	Peak        float64            `json:"peak"` | ||||
| 	Normal      float64            `json:"normal"` | ||||
| 	Caution     float64            `json:"caution"` | ||||
| 	Alert       float64            `json:"alert"` | ||||
| 	Name        string              `json:"name"` | ||||
| 	Unit        string              `json:"unit"` | ||||
| 	Scope       schema.MetricScope  `json:"scope"` | ||||
| 	Aggregation *string             `json:"aggregation"` | ||||
| 	Timestep    int                 `json:"timestep"` | ||||
| 	Peak        *float64            `json:"peak"` | ||||
| 	Normal      *float64            `json:"normal"` | ||||
| 	Caution     *float64            `json:"caution"` | ||||
| 	Alert       *float64            `json:"alert"` | ||||
| 	SubClusters []*SubClusterConfig `json:"subClusters"` | ||||
| } | ||||
|  | ||||
| type MetricFootprints struct { | ||||
| @@ -150,6 +151,14 @@ type SubCluster struct { | ||||
| 	Topology        *Topology `json:"topology"` | ||||
| } | ||||
|  | ||||
| type SubClusterConfig struct { | ||||
| 	Name    string  `json:"name"` | ||||
| 	Peak    float64 `json:"peak"` | ||||
| 	Normal  float64 `json:"normal"` | ||||
| 	Caution float64 `json:"caution"` | ||||
| 	Alert   float64 `json:"alert"` | ||||
| } | ||||
|  | ||||
| type TimeRange struct { | ||||
| 	From *time.Time `json:"from"` | ||||
| 	To   *time.Time `json:"to"` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user