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 Params
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 Params
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