final case class TotalCountMetric[T](countingFunction: (T) => Int, counter: Int = 0, lastCount: Int = 0) extends Metric[T] with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TotalCountMetric
- Serializable
- Product
- Equals
- Metric
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
Type Members
- abstract type Objective <: ServiceLevelObjective[V]
- Definition Classes
- Metric
- type V = Value
- Definition Classes
- TotalCountMetric → Metric
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val counter: Int
- val countingFunction: (T) => Int
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalValue(totalDuration: Duration): Value
- Definition Classes
- TotalCountMetric → Metric
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lastCount: Int
- def name: String
- Definition Classes
- Metric
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def onNext(value: T): TotalCountMetric[T]
- returns
an updated version of itself
- Definition Classes
- TotalCountMetric → Metric
- def periodicValue(periodDuration: Duration): (Metric[T], Value)
- returns
an updated version of itself and the value observed in this period NOTE: Durations of subsequent periods are not guaranteed to be exactly the same.
- Definition Classes
- TotalCountMetric → Metric
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def violatedFinalObjectives(totalDuration: Duration): List[(Objective, Value)]
- returns
a list of objective violations, where each element is a pair of a violated objective and the final value that violates it.
- Definition Classes
- TotalCountMetric → Metric
- def violatedPeriodicObjectives: List[(Objective, V)]
- returns
a list of objective violations, where each element is a pair of a violated objective and the periodic value that violates it the most.
- Definition Classes
- Metric
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])