Sha256: e194c7b2c626d94dd4d1aff19ddcb8c69e5ac75e13d1136cf0ed6d96587043f1

Contents?: true

Size: 351 Bytes

Versions: 27

Compression:

Stored size: 351 Bytes

Contents

$: << File.join(File.absolute_path(__FILE__), '..', '..', 'lib')

require "pulse-meter"

PulseMeter.redis = Redis.new

sensor = PulseMeter::Sensor::Timelined::Counter.new(:simple_sample_counter,
  :interval => 5,
  :ttl => 60 * 60,
  :annotation => 'Simple Sample Counter'
)

while true
  STDERR.puts "tick"
  sensor.event(1)
  sleep(Random.rand)
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
pulse-meter-0.4.14 examples/minimal/client.rb
pulse-meter-0.4.12 examples/minimal/client.rb
pulse-meter-0.4.11 examples/minimal/client.rb
pulse-meter-0.4.9 examples/minimal/client.rb
pulse-meter-0.4.8 examples/minimal/client.rb
pulse-meter-0.4.7 examples/minimal/client.rb
pulse-meter-0.4.6 examples/minimal/client.rb
pulse-meter-0.4.5 examples/minimal/client.rb
pulse-meter-0.4.4 examples/minimal/client.rb
pulse-meter-0.4.3 examples/minimal/client.rb
pulse-meter-0.4.2 examples/minimal/client.rb
pulse-meter-0.4.1 examples/minimal/client.rb
pulse-meter-0.4.0 examples/minimal/client.rb
pulse-meter-0.3.2 examples/minimal/client.rb
pulse-meter-0.3.1 examples/minimal/client.rb
pulse-meter-0.3.0 examples/minimal/client.rb
pulse-meter-0.2.11 examples/minimal/client.rb
pulse-meter-0.2.10 examples/minimal/client.rb
pulse-meter-0.2.9 examples/minimal/client.rb
pulse-meter-0.2.8 examples/minimal/client.rb