Module: MetricsJ
- Defined in:
- lib/metrics-java.rb,
lib/metrics-java/meter.rb,
lib/metrics-java/version.rb,
lib/metrics-java/base_mixin.rb
Defined Under Namespace
Modules: BaseMixin, Meter
Constant Summary
collapse
- VERSION =
"0.0.1"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.app_name ⇒ Object
Returns the value of attribute app_name.
17
18
19
|
# File 'lib/metrics-java.rb', line 17
def app_name
@app_name
end
|
Class Method Details
.create_metric_name(group, type, name, scope = nil) ⇒ com.yammer.metrics.core.MetricName
32
33
34
35
36
37
38
|
# File 'lib/metrics-java.rb', line 32
def create_metric_name(group, type, name, scope=nil)
if scope
MetricName.new(group, type, name, scope)
else
MetricName.new(group, type, name)
end
end
|
.time_unit_seconds ⇒ Object
23
24
25
|
# File 'lib/metrics-java.rb', line 23
def time_unit_seconds
TimeUnit::SECONDS
end
|