Sha256: 467b1f8f38f278f44f1d4511499c20340308eb17c6834e4e746f048b805de273
Contents?: true
Size: 700 Bytes
Versions: 2
Compression:
Stored size: 700 Bytes
Contents
module Simple module Metrics module Meter include Simple::Metrics # Create a new meter # # @param [String] name The name of the meter # @param [String] klass_name The name of the class, usually the application. Defaults to # `self.class.name` def define_meter(name, klass_name = self.class.name) type = "meter" metric_name = new_metric_name(klass_name, name, type) meter = Java::ComYammerMetrics::Metrics.new_meter(metric_name, name.to_s, Simple::Metrics::DEFAULT_RATE_UNIT) define_method("#{name}") do meter end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple-metrics-0.0.11-java | lib/simple/metrics/meter.rb |
simple-metrics-0.0.10-java | lib/simple/metrics/meter.rb |