Sha256: 24720e0d8d0a0ce38de721bde57d5bd31c26daf7e0165767590aa1eaf15c526c
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 Bytes
Contents
WebAdminApp.get '/processes' do get_menu 1 log = get_logger log.call "WEB : processes, verb : GET, controller : /processes" url = "http://#{get_config.webadmin_ip}:#{get_config.webadmin_port}/api/process/list.yml" raw = RestClient::Request.execute(method: 'GET', url: url,timeout: 10) @data = YAML::load(raw)[:data] url = "http://#{get_config.webadmin_ip}:#{get_config.webadmin_port}/api/process/analyse.yml" raw = RestClient::Request.execute(method: 'POST', url: url,timeout: 10) prov = YAML::load(raw)[:data] @result = {} prov.each {|item| @result[item[:process]] = item } slim :processes, :format => :html end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
prometheus-splash-0.8.3 | lib/splash/webadmin/portal/controllers/processes.rb |
prometheus-splash-0.8.2 | lib/splash/webadmin/portal/controllers/processes.rb |