Module: MetricsJ::BaseMixin

Defined in:
lib/metrics-java/base_mixin.rb

Instance Attribute Summary collapse

Instance Attribute Details

#metric_groupString

Returns The group name to use for the metrics being collected.

Returns:

  • (String)

    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_namecom.yammer.metrics.core.MetricName

Returns The MetricName that describes where the Metric data lives in JMX.

Returns:

  • (com.yammer.metrics.core.MetricName)

    The MetricName that describes where the Metric data lives in JMX

See Also:



20
21
22
# File 'lib/metrics-java/base_mixin.rb', line 20

def metric_name
  @metric_name
end

#metric_typeString

Returns The group name to use for the metrics being collected.

Returns:

  • (String)

    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