|
@@ -117,6 +117,7 @@ func getStatus(w http.ResponseWriter, r *http.Request) {
|
|
type status struct {
|
|
type status struct {
|
|
DB bool `json:"db_connected"`
|
|
DB bool `json:"db_connected"`
|
|
Broker bool `json:"broker_connected"`
|
|
Broker bool `json:"broker_connected"`
|
|
|
|
+ IsBrokerConnOpen bool `json:"is_broker_conn_open"`
|
|
LicenseError string `json:"license_error"`
|
|
LicenseError string `json:"license_error"`
|
|
IsPro bool `json:"is_pro"`
|
|
IsPro bool `json:"is_pro"`
|
|
TrialEndDate time.Time `json:"trial_end_date"`
|
|
TrialEndDate time.Time `json:"trial_end_date"`
|
|
@@ -141,6 +142,7 @@ func getStatus(w http.ResponseWriter, r *http.Request) {
|
|
currentServerStatus := status{
|
|
currentServerStatus := status{
|
|
DB: database.IsConnected(),
|
|
DB: database.IsConnected(),
|
|
Broker: mq.IsConnected(),
|
|
Broker: mq.IsConnected(),
|
|
|
|
+ IsBrokerConnOpen: mq.IsConnectionOpen(),
|
|
LicenseError: licenseErr,
|
|
LicenseError: licenseErr,
|
|
IsPro: servercfg.IsPro,
|
|
IsPro: servercfg.IsPro,
|
|
TrialEndDate: trialEndDate,
|
|
TrialEndDate: trialEndDate,
|