fix
This commit is contained in:
@@ -1074,6 +1074,12 @@ func Worker_nodes_plan(w http.ResponseWriter, r *http.Request) {
|
||||
func ClusterStats(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
data := models.ClusterStats{
|
||||
Name: "vcluster-cluster",
|
||||
ClusterId: "6547",
|
||||
Status: "Healthy",
|
||||
Version: "v3.31.0",
|
||||
Alerts: "0/1",
|
||||
Endpoint: "http://aa.bugx.ir",
|
||||
ResourceUsage: models.ResourceUsage{
|
||||
CPU: models.Usage{Used: 65, Total: 100, Unit: "cores"},
|
||||
Memory: models.Usage{Used: 8.2, Total: 16, Unit: "GB"},
|
||||
@@ -1087,6 +1093,7 @@ func ClusterStats(w http.ResponseWriter, r *http.Request) {
|
||||
SchedulerLatency: "8ms",
|
||||
},
|
||||
Health: models.Health{
|
||||
Status: "Healthy",
|
||||
NodesHealthy: 3,
|
||||
NodesTotal: 3,
|
||||
PodsRunning: 10,
|
||||
|
||||
Reference in New Issue
Block a user