Class ImmutableDoublePointData
java.lang.Object
io.opentelemetry.sdk.metrics.internal.data.ImmutableDoublePointData
- All Implemented Interfaces:
DoublePointData, PointData
- Direct Known Subclasses:
AutoValue_ImmutableDoublePointData
DoublePoint is a single data point in a timeseries that describes the time-varying value of a
double metric.
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 DoublePointDatacreate(long startEpochNanos, long epochNanos, Attributes attributes, double value) Creates aImmutableDoublePointData.static DoublePointDatacreate(long startEpochNanos, long epochNanos, Attributes attributes, double value, List<DoubleExemplarData> exemplars) Creates aImmutableDoublePointData.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DoublePointData
getExemplars, getValueMethods inherited from interface PointData
getAttributes, getEpochNanos, getStartEpochNanos
-
Constructor Details
-
ImmutableDoublePointData
ImmutableDoublePointData()
-
-
Method Details
-
create
public static DoublePointData create(long startEpochNanos, long epochNanos, Attributes attributes, double value) Creates aImmutableDoublePointData.- 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 DoublePointData create(long startEpochNanos, long epochNanos, Attributes attributes, double value, List<DoubleExemplarData> exemplars) Creates aImmutableDoublePointData.- 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.
-