mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
Add uptime to ServiceStatus (#3690)
This commit is contained in:
committed by
Harshavardhana
parent
7547f3c8a3
commit
ce9aa2f2b2
@@ -25,6 +25,7 @@ import (
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"time"
|
||||
)
|
||||
|
||||
// BackendType - represents different backend types.
|
||||
@@ -70,6 +71,7 @@ type ServerVersion struct {
|
||||
type ServiceStatusMetadata struct {
|
||||
StorageInfo StorageInfo `json:"storageInfo"`
|
||||
ServerVersion ServerVersion `json:"serverVersion"`
|
||||
Uptime time.Duration `json:"uptime"`
|
||||
}
|
||||
|
||||
// ServiceStatus - Connect to a minio server and call Service Status Management API
|
||||
|
||||
Reference in New Issue
Block a user