MetricName

object MetricName
Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(metricOwner: Class[_], names: String*): MetricName

Create a metrics name from a Class.

Create a metrics name from a Class.

Unlike com.codahale.metrics.MetricRegistry.name this version supports Scala classes such as objects and closures.

Value parameters:
metricOwner

the class that 'owns' the metric

names

the name parts to append, empty strings and nulls are ignored

Returns:

a metric (base)name

def apply(name: String, names: String*): MetricName

Directly create a metrics name from a String.

Directly create a metrics name from a String.

Value parameters:
name

the (base)name for the metric This should not be empty; not appending more names may lead to an -illegal- empty metric name. However, for backward compatibility an empty name is allowed.

names

the name parts to append, empty strings and nulls are ignored

Returns:

a metric (base)name