final case class Metric extends MetricNumericConverter with Product with Serializable

Metrics key/value.

Equality of Metric is based on its name.

Annotations
@SerialVersionUID()
Source
Metric.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, MetricNumericConverter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Metric
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MetricNumericConverter
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def :+(latest: Metric): Metric

    Updates the data point, and if defined, updates the data stream (average).

    Updates the data point, and if defined, updates the data stream (average). Returns the updated metric.

  2. val average: Option[EWMA]
  3. def convertNumber(from: Any): Either[Long, Double]

    May involve rounding or truncation.

    May involve rounding or truncation.

    Definition Classes
    MetricNumericConverter
  4. def defined(value: Number): Boolean

    An defined value is neither negative nor NaN/Infinite:

    An defined value is neither negative nor NaN/Infinite:

    • JMX system load average and max heap can be 'undefined' for certain OS, in which case a -1 is returned
    • SIGAR combined CPU can occasionally return a NaN or Infinite (known bug)
    Definition Classes
    MetricNumericConverter
  5. def equals(obj: Any): Boolean
    Definition Classes
    Metric → Equals → AnyRef → Any
  6. def hashCode(): Int
    Definition Classes
    Metric → AnyRef → Any
  7. def isSmooth: Boolean

    returns

    true if this value is smoothed

  8. val name: String
  9. def sameAs(that: Metric): Boolean

    Returns true if that is tracking the same metric as this.

  10. def smoothValue: Double

    The numerical value of the average, if defined, otherwise the latest value

  11. val value: Number