Module: MetricsJ::BaseMixin
- Defined in:
- lib/metrics-java/base_mixin.rb
Instance Attribute Summary collapse
-
#metric_group ⇒ String
The group name to use for the metrics being collected.
-
#metric_name ⇒ com.yammer.metrics.core.MetricName
The MetricName that describes where the Metric data lives in JMX.
-
#metric_type ⇒ String
The group name to use for the metrics being collected.
Instance Attribute Details
#metric_group ⇒ String
Returns The group name to use for the metrics being collected.
9 10 11 |
# File 'lib/metrics-java/base_mixin.rb', line 9 def metric_group @metric_group ||= MetricsJ.app_name end |
#metric_name ⇒ com.yammer.metrics.core.MetricName
Returns The MetricName that describes where the Metric data lives in JMX.
20 21 22 |
# File 'lib/metrics-java/base_mixin.rb', line 20 def metric_name @metric_name end |
#metric_type ⇒ String
Returns The group name to use for the metrics being collected.
14 15 16 |
# File 'lib/metrics-java/base_mixin.rb', line 14 def metric_type @metrics_type ||= self.name end |