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
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- Metric
- Serializable
- Serializable
- Product
- Equals
- MetricNumericConverter
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
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.
- val average: Option[EWMA]
-
def
convertNumber(from: Any): Either[Long, Double]
May involve rounding or truncation.
May involve rounding or truncation.
- Definition Classes
- MetricNumericConverter
-
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
-
def
equals(obj: Any): Boolean
- Definition Classes
- Metric → Equals → AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- Metric → AnyRef → Any
-
def
isSmooth: Boolean
- returns
true if this value is smoothed
- val name: String
-
def
sameAs(that: Metric): Boolean
Returns true if
that
is tracking the same metric as this. -
def
smoothValue: Double
The numerical value of the average, if defined, otherwise the latest value
- val value: Number