Class 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GraphiteMetric

        public GraphiteMetric​(java.lang.String path,
                              java.lang.String value,
                              long timestamp)
    • 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object