Sha256: cd66ac8beedbb8509093ccf79f32050d6991b077769777709f986c98f32e8471
Contents?: true
Size: 812 Bytes
Versions: 1
Compression:
Stored size: 812 Bytes
Contents
require 'pulse-meter/visualizer' module PulseToolbox::Server class Monitoring < PulseMeter::Visualize::App def initialize super(layout) end def layout PulseToolbox::Sensor::Manager.layout do |l| l.use_utc false l.page "Requests" do |p| PulseToolbox::Sensor::Manager.each_group_with_title do |group, title, values_label| p.line title do |w| PulseToolbox::Sensor::Manager.each_sensor_in_group(group) do |s| w.sensor s.name, :color => s.color end w.timespan 60 * 60 * 3 w.redraw_interval 10 w.show_last_point true w.values_label values_label w.width 5 end end end end.to_layout end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pulse-meter-rails-0.1.3 | lib/pulse_toolbox/server/monitoring.rb |