diff options
| author | chrislu <chris.lu@gmail.com> | 2025-07-02 23:17:27 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-07-02 23:17:27 -0700 |
| commit | ebb16f474ce660b589dc1301dd31106543b51f5a (patch) | |
| tree | 28d84f008d16cd09cdc938d009757b106705823d /weed/admin/handlers/admin_handlers.go | |
| parent | 40e3eae21f3c9fa6d751307b5843c733b8a196bc (diff) | |
| download | seaweedfs-ebb16f474ce660b589dc1301dd31106543b51f5a.tar.xz seaweedfs-ebb16f474ce660b589dc1301dd31106543b51f5a.zip | |
remove status fields
Diffstat (limited to 'weed/admin/handlers/admin_handlers.go')
| -rw-r--r-- | weed/admin/handlers/admin_handlers.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/weed/admin/handlers/admin_handlers.go b/weed/admin/handlers/admin_handlers.go index a0140a25d..6860246dc 100644 --- a/weed/admin/handlers/admin_handlers.go +++ b/weed/admin/handlers/admin_handlers.go @@ -181,7 +181,7 @@ func (h *AdminHandlers) SetupRoutes(r *gin.Engine, authRequired bool, username, // HealthCheck returns the health status of the admin interface func (h *AdminHandlers) HealthCheck(c *gin.Context) { - c.JSON(200, gin.H{"status": "ok"}) + c.JSON(200, gin.H{"health": "ok"}) } // ShowDashboard renders the main admin dashboard @@ -278,13 +278,11 @@ func (h *AdminHandlers) getAdminData(c *gin.Context) dash.AdminData { { Address: "localhost:9333", IsLeader: true, - Status: "unreachable", }, } return dash.AdminData{ Username: username, - ClusterStatus: "warning", TotalVolumes: 0, TotalFiles: 0, TotalSize: 0, @@ -301,12 +299,6 @@ func (h *AdminHandlers) getAdminData(c *gin.Context) dash.AdminData { } // Helper functions -func (h *AdminHandlers) determineClusterStatus(topology *dash.ClusterTopology, masters []dash.MasterNode) string { - if len(topology.VolumeServers) == 0 { - return "warning" - } - return "healthy" -} func (h *AdminHandlers) determineSystemHealth(topology *dash.ClusterTopology, masters []dash.MasterNode) string { if len(topology.VolumeServers) > 0 && len(masters) > 0 { |
