Class LongPointData
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.data.LongPointData
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static LongPointDatacreate(long startEpochNanos, long epochNanos, io.opentelemetry.api.common.Attributes attributes, long value)Creates aLongPointData.static LongPointDatacreate(long startEpochNanos, long epochNanos, io.opentelemetry.api.common.Attributes attributes, long value, List<Exemplar> exemplars)Creates aLongPointData.abstract longgetValue()Returns the value of the data point.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.opentelemetry.sdk.metrics.data.PointData
getAttributes, getEpochNanos, getExemplars, getStartEpochNanos
-
-
-
-
Method Detail
-
getValue
public abstract long getValue()
Returns the value of the data point.- Returns:
- the value of the data point.
-
create
public static LongPointData create(long startEpochNanos, long epochNanos, io.opentelemetry.api.common.Attributes attributes, long value)
Creates aLongPointData.- Parameters:
startEpochNanos- The starting time for the period where this point was sampled. Note: While start time is optional in OTLP, all SDKs should produce it for all their metrics, so it is required here.epochNanos- The ending time for the period when this value was sampled.attributes- The set of attributes associated with this point.value- The value that was sampled.
-
create
public static LongPointData create(long startEpochNanos, long epochNanos, io.opentelemetry.api.common.Attributes attributes, long value, List<Exemplar> exemplars)
Creates aLongPointData.- Parameters:
startEpochNanos- The starting time for the period where this point was sampled. Note: While start time is optional in OTLP, all SDKs should produce it for all their metrics, so it is required here.epochNanos- The ending time for the period when this value was sampled.attributes- The set of attributes associated with this point.value- The value that was sampled.exemplars- A collection of interesting sampled values from this time period.
-
-