Class GraphiteMetric
- java.lang.Object
-
- org.opennms.netmgt.telemetry.protocols.graphite.adapter.GraphiteMetric
-
public class GraphiteMetric extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GraphiteMetric(java.lang.String path, java.lang.String value, long timestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
doubleValue()
The value, as a double-precision number.boolean
equals(java.lang.Object obj)
java.lang.Float
floatValue()
The value, as a floating-point number.java.time.Instant
getInstant()
The timestamp as an Instant.java.lang.String
getPath()
The graphite path, an arbitrary key.long
getTimestamp()
The timestamp as a UNIX epoch.java.lang.String
getValue()
The raw value.int
hashCode()
java.lang.Integer
intValue()
The value, as an Integer number.java.lang.Long
longValue()
The value, as a Long number.java.lang.String
toString()
-
-
-
Method Detail
-
getPath
public java.lang.String getPath()
The graphite path, an arbitrary key.
-
getValue
public java.lang.String getValue()
The raw value.
-
intValue
public java.lang.Integer intValue()
The value, as an Integer number.
-
longValue
public java.lang.Long longValue()
The value, as a Long number.
-
floatValue
public java.lang.Float floatValue()
The value, as a floating-point number.
-
doubleValue
public java.lang.Double doubleValue()
The value, as a double-precision number.
-
getTimestamp
public long getTimestamp()
The timestamp as a UNIX epoch.
-
getInstant
public java.time.Instant getInstant()
The timestamp as an Instant.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-