Class ImmutableLongPointData
java.lang.Object
io.opentelemetry.sdk.metrics.internal.data.ImmutableLongPointData
- All Implemented Interfaces:
LongPointData
,PointData
- Direct Known Subclasses:
AutoValue_ImmutableLongPointData
LongPoint is a single data point in a timeseries that describes the time-varying values of a
int64 metric.
In the proto definition this is called Int64Point.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LongPointData
create
(long startEpochNanos, long epochNanos, Attributes attributes, long value) Creates aImmutableLongPointData
.static LongPointData
create
(long startEpochNanos, long epochNanos, Attributes attributes, long value, List<LongExemplarData> exemplars) Creates aImmutableLongPointData
.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.LongPointData
getExemplars, getValue
Methods inherited from interface io.opentelemetry.sdk.metrics.data.PointData
getAttributes, getEpochNanos, getStartEpochNanos
-
Constructor Details
-
ImmutableLongPointData
ImmutableLongPointData()
-
-
Method Details
-
create
public static LongPointData create(long startEpochNanos, long epochNanos, Attributes attributes, long value) Creates aImmutableLongPointData
.- 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, Attributes attributes, long value, List<LongExemplarData> exemplars) Creates aImmutableLongPointData
.- 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.
-