Add deploymentID to ServerInfo (#7372)

master
Krishnan Parthasarathi 6 years ago committed by Nitish Tiwari
parent 328eb74cbb
commit 8a77a298f2
  1. 2
      cmd/admin-handlers.go
  2. 1
      pkg/madmin/info-commands.go

@ -180,6 +180,7 @@ type ServerProperties struct {
Uptime time.Duration `json:"uptime"`
Version string `json:"version"`
CommitID string `json:"commitID"`
DeploymentID string `json:"deploymentID"`
Region string `json:"region"`
SQSARN []string `json:"sqsARN"`
}
@ -259,6 +260,7 @@ func (a adminAPIHandlers) ServerInfoHandler(w http.ResponseWriter, r *http.Reque
Uptime: UTCNow().Sub(globalBootTime),
Version: Version,
CommitID: CommitID,
DeploymentID: globalDeploymentID,
SQSARN: globalNotificationSys.GetARNList(),
Region: globalServerConfig.GetRegion(),
},

@ -75,6 +75,7 @@ type ServerProperties struct {
Uptime time.Duration `json:"uptime"`
Version string `json:"version"`
CommitID string `json:"commitID"`
DeploymentID string `json:"deploymentID"`
Region string `json:"region"`
SQSARN []string `json:"sqsARN"`
}

Loading…
Cancel
Save