Package com.newrelic.telemetry.metrics
Class Gauge
- java.lang.Object
-
- com.newrelic.telemetry.metrics.Gauge
-
-
Constructor Summary
Constructors Constructor Description Gauge(java.lang.String name, double value, long timestamp, Attributes attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Map<java.lang.String,java.lang.Object>getAttributes()java.lang.StringgetName()longgetTimestamp()doublegetValue()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Gauge
public Gauge(java.lang.String name, double value, long timestamp, Attributes attributes)- Parameters:
name- The name for this Gauge metric.value- The value of this Gauge, recorded at the point in time.timestamp- The point in time this Gauge measurement was recorded, in milliseconds since epoch.attributes- Dimensional attributes, as key-value pairs, associated with this Gauge.
-
-
Method Detail
-
getValue
public double getValue()
- Returns:
- The value of this Gauge, recorded at the point in time.
-
getTimestamp
public long getTimestamp()
- Returns:
- The point in time this Gauge measurement was recorded, in milliseconds since epoch.
-
getName
public java.lang.String getName()
- Returns:
- The name for this Gauge metric.
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
- Returns:
- Dimensional attributes, as key-value pairs, associated with this Gauge.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-