case class Counter[T](name: String, help: String = "", labels2Value: Map[Set[(String, String)], AnyVal] = Map.empty)(implicit number: Numeric[T]) extends Metric with Product with Serializable
A Counter contains a value that can only be incremented. Increments are not threadsafe.
- name
The metric name.
- help
Metric description if provided.
- labels2Value
map of (label name, label value) pairs to counter values
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Counter
- Serializable
- Serializable
- Product
- Equals
- Metric
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
Counter(name: String, help: String = "", labels2Value: Map[Set[(String, String)], AnyVal] = Map.empty)(implicit number: Numeric[T])
- name
The metric name.
- help
Metric description if provided.
- labels2Value
map of (label name, label value) pairs to counter values
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val help: String
- def inc(label: Set[(String, String)]): Counter[T]
-
def
isDefined: Boolean
- Definition Classes
- Metric
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val labels2Value: Map[Set[(String, String)], AnyVal]
- val metricType: MetricType
- val name: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def withDefaultsFor(labels: Seq[Set[(String, String)]]): Counter[T]