Package org.jmxtrans.agent.influxdb
Class InfluxMetric
java.lang.Object
org.jmxtrans.agent.influxdb.InfluxMetric
public class InfluxMetric
extends java.lang.Object
- Author:
- Kristoffer Erlandsson
-
Field Summary
Fields Modifier and Type Field Description protected static java.text.NumberFormatNUMBER_FORMAT -
Constructor Summary
Constructors Constructor Description InfluxMetric(java.lang.String measurement, java.util.List<InfluxTag> tags, java.lang.Object value, long timestampMillis) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetMeasurement()java.util.List<InfluxTag>getTags()longgetTimestampMillis()java.lang.ObjectgetValue()inthashCode()java.lang.StringtoInfluxFormat()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
NUMBER_FORMAT
protected static final java.text.NumberFormat NUMBER_FORMAT
-
-
Constructor Details
-
InfluxMetric
public InfluxMetric(java.lang.String measurement, java.util.List<InfluxTag> tags, java.lang.Object value, long timestampMillis)
-
-
Method Details
-
getTimestampMillis
public long getTimestampMillis() -
getTags
-
getMeasurement
public java.lang.String getMeasurement() -
getValue
public java.lang.Object getValue() -
toInfluxFormat
public java.lang.String toInfluxFormat() -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-