Permalink
Browse files

Add gauges method to ruby example.

  • Loading branch information...
1 parent 8e10bc3 commit 66f9d2517aad6c65443cfa4fb0db4d69c901dfd1 @kashif kashif committed Apr 28, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 examples/ruby_example2.rb
@@ -36,7 +36,11 @@ def self.increment(stats, sample_rate=1)
def self.decrement(stats, sample_rate=1)
Statsd.update_stats(stats, -1, sample_rate)
end
-
+
+ def self.gauges(stats, value, sample_rate=1)
+ Statsd.update_stats(stats, value, sample_rate, 'g')
+ end
+
def self.update_stats(stats, delta=1, sample_rate=1, metric='c')
stats = [stats].flatten

0 comments on commit 66f9d25

Please sign in to comment.