|
|
@ -8,11 +8,11 @@ class Admins::DashboardsController < Admins::BaseController
|
|
|
|
|
|
|
|
|
|
|
|
shixun_tomcat = edu_setting('cloud_bridge')
|
|
|
|
shixun_tomcat = edu_setting('cloud_bridge')
|
|
|
|
|
|
|
|
|
|
|
|
# uri = "#{shixun_tomcat}/bridge/monitor/getPodsInfo"
|
|
|
|
uri = "#{shixun_tomcat}/bridge/monitor/getPodsInfo"
|
|
|
|
# res = interface_get uri, 502, "数据接口延迟"
|
|
|
|
res = interface_get uri, 502, "数据接口延迟"
|
|
|
|
# if res['code'] == 0
|
|
|
|
if res['code'] == 0
|
|
|
|
# @pod_num = res['sum'] || 0
|
|
|
|
@pod_num = res['sum'] || 0
|
|
|
|
# end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def month_active_user
|
|
|
|
def month_active_user
|
|
|
|