Class HistogramDataPointMarshaler
- java.lang.Object
-
- io.opentelemetry.exporter.internal.marshal.Marshaler
-
- io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
-
- io.opentelemetry.exporter.internal.otlp.metrics.HistogramDataPointMarshaler
-
final class HistogramDataPointMarshaler extends MarshalerWithSize
-
-
Field Summary
Fields Modifier and Type Field Description private KeyValueMarshaler[]
attributes
private java.util.List<java.lang.Long>
bucketCounts
private long
count
private ExemplarMarshaler[]
exemplars
private java.util.List<java.lang.Double>
explicitBounds
private boolean
hasMax
private boolean
hasMin
private double
max
private double
min
private long
startTimeUnixNano
private double
sum
private long
timeUnixNano
-
Constructor Summary
Constructors Modifier Constructor Description private
HistogramDataPointMarshaler(long startTimeUnixNano, long timeUnixNano, long count, double sum, boolean hasMin, double min, boolean hasMax, double max, java.util.List<java.lang.Long> bucketCounts, java.util.List<java.lang.Double> explicitBounds, ExemplarMarshaler[] exemplars, KeyValueMarshaler[] attributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int
calculateSize(long startTimeUnixNano, long timeUnixNano, long count, double sum, boolean hasMin, double min, boolean hasMax, double max, java.util.List<java.lang.Long> bucketCounts, java.util.List<java.lang.Double> explicitBounds, ExemplarMarshaler[] exemplars, KeyValueMarshaler[] attributes)
(package private) static HistogramDataPointMarshaler
create(HistogramPointData point)
(package private) static HistogramDataPointMarshaler[]
createRepeated(java.util.Collection<HistogramPointData> points)
void
writeTo(Serializer output)
-
Methods inherited from class io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
getBinarySerializedSize
-
Methods inherited from class io.opentelemetry.exporter.internal.marshal.Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline
-
-
-
-
Field Detail
-
startTimeUnixNano
private final long startTimeUnixNano
-
timeUnixNano
private final long timeUnixNano
-
count
private final long count
-
sum
private final double sum
-
hasMin
private final boolean hasMin
-
min
private final double min
-
hasMax
private final boolean hasMax
-
max
private final double max
-
bucketCounts
private final java.util.List<java.lang.Long> bucketCounts
-
explicitBounds
private final java.util.List<java.lang.Double> explicitBounds
-
exemplars
private final ExemplarMarshaler[] exemplars
-
attributes
private final KeyValueMarshaler[] attributes
-
-
Constructor Detail
-
HistogramDataPointMarshaler
private HistogramDataPointMarshaler(long startTimeUnixNano, long timeUnixNano, long count, double sum, boolean hasMin, double min, boolean hasMax, double max, java.util.List<java.lang.Long> bucketCounts, java.util.List<java.lang.Double> explicitBounds, ExemplarMarshaler[] exemplars, KeyValueMarshaler[] attributes)
-
-
Method Detail
-
createRepeated
static HistogramDataPointMarshaler[] createRepeated(java.util.Collection<HistogramPointData> points)
-
create
static HistogramDataPointMarshaler create(HistogramPointData point)
-
writeTo
public void writeTo(Serializer output) throws java.io.IOException
-
calculateSize
private static int calculateSize(long startTimeUnixNano, long timeUnixNano, long count, double sum, boolean hasMin, double min, boolean hasMax, double max, java.util.List<java.lang.Long> bucketCounts, java.util.List<java.lang.Double> explicitBounds, ExemplarMarshaler[] exemplars, KeyValueMarshaler[] attributes)
-
-