Add uptime to ServiceStatus (#3690)

This commit is contained in:
Krishnan Parthasarathi
2017-02-08 13:43:02 +05:30
committed by Harshavardhana
parent 7547f3c8a3
commit ce9aa2f2b2
7 changed files with 139 additions and 10 deletions

View File

@@ -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