Package com.newrelic.telemetry.metrics
Class Count
- java.lang.Object
-
- com.newrelic.telemetry.metrics.Count
-
-
Constructor Summary
Constructors Constructor Description Count(java.lang.String name, double value, long startTimeMs, long endTimeMs, Attributes attributes)Create a new Count instance.
-
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()longgetEndTimeMs()java.lang.StringgetName()longgetStartTimeMs()doublegetValue()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Count
public Count(java.lang.String name, double value, long startTimeMs, long endTimeMs, Attributes attributes)Create a new Count instance.- Parameters:
name- The name of this count instance.value- The value for this count instance.startTimeMs- The start time of the interval over which the count was measured. This is in milliseconds since epoch.endTimeMs- The end time of the interval over which the count was measured. This is in milliseconds since epoch.attributes- Any additional attributes associated with this count.
-
-
Method Detail
-
getName
public java.lang.String getName()
- Returns:
- The name for this Count metric.
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
- Returns:
- Dimensional attributes, as key-value pairs, associated with this Count.
-
getValue
public double getValue()
- Returns:
- The value, which should be a positive number, representing the Count for the provided interval.
-
getStartTimeMs
public long getStartTimeMs()
- Returns:
- The start time of the interval over which this Count was recorded, in milliseconds since epoch.
-
getEndTimeMs
public long getEndTimeMs()
- Returns:
- The end time of the interval over which this Count was recorded, in milliseconds since epoch.
-
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
-
-