mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-10-31 07:55:06 +01:00 
			
		
		
		
	add scheduler and health status pie charts
This commit is contained in:
		| @@ -321,6 +321,9 @@ func (r *NodeRepository) CountNodeStates(ctx context.Context, filters []*model.N | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	// Add Group and Order | ||||
| 	query = query.GroupBy("state").OrderBy("count DESC") | ||||
|  | ||||
| 	rows, err := query.RunWith(r.stmtCache).Query() | ||||
| 	if err != nil { | ||||
| 		queryString, queryVars, _ := query.ToSql() | ||||
| @@ -367,6 +370,9 @@ func (r *NodeRepository) CountHealthStates(ctx context.Context, filters []*model | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	// Add Group and Order | ||||
| 	query = query.GroupBy("state").OrderBy("count DESC") | ||||
|  | ||||
| 	rows, err := query.RunWith(r.stmtCache).Query() | ||||
| 	if err != nil { | ||||
| 		queryString, queryVars, _ := query.ToSql() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user