c
com.digitalasset.canton.ledger.api.benchtool.metrics
ConsumptionSpeedMetric
Companion object ConsumptionSpeedMetric
final case class ConsumptionSpeedMetric[T](recordTimeFunction: (T) => Seq[Timestamp], objective: Option[(MinConsumptionSpeed, Option[ConsumptionSpeedMetric.Value])], previousLatest: Option[Instant] = None, currentPeriodLatest: Option[Instant] = None) extends Metric[T] with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
 - By Inheritance
 
Inherited
- ConsumptionSpeedMetric
 - Serializable
 - Product
 - Equals
 - Metric
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
Visibility
- Public
 - Protected
 
Instance Constructors
Type Members
-    type Objective = MinConsumptionSpeed
- Definition Classes
 - ConsumptionSpeedMetric → Metric
 
 -    type V = ConsumptionSpeedMetric.Value
- Definition Classes
 - ConsumptionSpeedMetric → 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]) @IntrinsicCandidate() @native()
 
 -  val currentPeriodLatest: Option[Instant]
 -   final  def eq(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef
 
 -    def finalValue(totalDuration: Duration): ConsumptionSpeedMetric.Value
- Definition Classes
 - ConsumptionSpeedMetric → Metric
 
 -   final  def getClass(): Class[_ <: AnyRef]
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @IntrinsicCandidate() @native()
 
 -   final  def isInstanceOf[T0]: Boolean
- Definition Classes
 - Any
 
 -    def name: String
- Definition Classes
 - Metric
 
 -   final  def ne(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef
 
 -   final  def notify(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @IntrinsicCandidate() @native()
 
 -   final  def notifyAll(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @IntrinsicCandidate() @native()
 
 -  val objective: Option[(MinConsumptionSpeed, Option[ConsumptionSpeedMetric.Value])]
 -    def onNext(value: T): ConsumptionSpeedMetric[T]
- returns
 an updated version of itself
- Definition Classes
 - ConsumptionSpeedMetric → Metric
 
 -    def periodicValue(periodDuration: Duration): (Metric[T], ConsumptionSpeedMetric.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
 - ConsumptionSpeedMetric → Metric
 
 -  val previousLatest: Option[Instant]
 -    def productElementNames: Iterator[String]
- Definition Classes
 - Product
 
 -  val recordTimeFunction: (T) => Seq[Timestamp]
 -   final  def synchronized[T0](arg0: => T0): T0
- Definition Classes
 - AnyRef
 
 -    def violatedFinalObjectives(totalDuration: Duration): List[(MinConsumptionSpeed, ConsumptionSpeedMetric.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
 - ConsumptionSpeedMetric → Metric
 
 -    def violatedPeriodicObjectives: List[(MinConsumptionSpeed, ConsumptionSpeedMetric.Value)]
- 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
 - ConsumptionSpeedMetric → 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])
 
 -   final  def wait(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.InterruptedException])