Add deploymentID to ServerInfo (#7372)

This commit is contained in:
Krishnan Parthasarathi 2019-03-19 16:12:24 +05:30 committed by Nitish Tiwari
parent 328eb74cbb
commit 8a77a298f2
2 changed files with 18 additions and 15 deletions

View File

@ -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(),
},

View File

@ -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"`
}