Class GraphiteMetric
- java.lang.Object
-
- org.opennms.netmgt.telemetry.protocols.graphite.adapter.GraphiteMetric
-
public class GraphiteMetric extends Object
-
-
Constructor Summary
Constructors Constructor Description GraphiteMetric(String path, String value, long timestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubledoubleValue()The value, as a double-precision number.booleanequals(Object obj)FloatfloatValue()The value, as a floating-point number.java.time.InstantgetInstant()The timestamp as an Instant.StringgetPath()The graphite path, an arbitrary key.longgetTimestamp()The timestamp as a UNIX epoch.StringgetValue()The raw value.inthashCode()IntegerintValue()The value, as an Integer number.LonglongValue()The value, as a Long number.StringtoString()
-
-
-
Method Detail
-
getPath
public String getPath()
The graphite path, an arbitrary key.
-
getValue
public String getValue()
The raw value.
-
intValue
public Integer intValue()
The value, as an Integer number.
-
longValue
public Long longValue()
The value, as a Long number.
-
floatValue
public Float floatValue()
The value, as a floating-point number.
-
doubleValue
public 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.
-
-