Class ImmutableSample

  • All Implemented Interfaces:
    java.io.Serializable, org.opennms.integration.api.v1.timeseries.Sample

    public class ImmutableSample
    extends java.lang.Object
    implements org.opennms.integration.api.v1.timeseries.Sample, java.io.Serializable
    See Also:
    Serialized Form
    • Method Detail

      • getMetric

        public org.opennms.integration.api.v1.timeseries.Metric getMetric()
        Specified by:
        getMetric in interface org.opennms.integration.api.v1.timeseries.Sample
      • getTime

        public java.time.Instant getTime()
        Specified by:
        getTime in interface org.opennms.integration.api.v1.timeseries.Sample
      • getValue

        public java.lang.Double getValue()
        Specified by:
        getValue in interface org.opennms.integration.api.v1.timeseries.Sample
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object