Class HistogramDataPointMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
io.opentelemetry.exporter.internal.otlp.metrics.HistogramDataPointMarshaler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final KeyValueMarshaler[]private final longprivate final ExemplarMarshaler[]private final booleanprivate final booleanprivate final doubleprivate final doubleprivate final longprivate final doubleprivate final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateHistogramDataPointMarshaler(long startTimeUnixNano, long timeUnixNano, long count, double sum, boolean hasMin, double min, boolean hasMax, double max, List<Long> bucketCounts, List<Double> explicitBounds, ExemplarMarshaler[] exemplars, KeyValueMarshaler[] attributes) -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcalculateSize(long startTimeUnixNano, long timeUnixNano, long count, double sum, boolean hasMin, double min, boolean hasMax, double max, List<Long> bucketCounts, List<Double> explicitBounds, ExemplarMarshaler[] exemplars, KeyValueMarshaler[] attributes) (package private) static HistogramDataPointMarshalercreate(HistogramPointData point) (package private) static HistogramDataPointMarshaler[]createRepeated(Collection<HistogramPointData> points) voidwriteTo(Serializer output) Methods inherited from class MarshalerWithSize
getBinarySerializedSizeMethods inherited from class Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline
-
Field Details
-
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
-
explicitBounds
-
exemplars
-
attributes
-
-
Constructor Details
-
HistogramDataPointMarshaler
private HistogramDataPointMarshaler(long startTimeUnixNano, long timeUnixNano, long count, double sum, boolean hasMin, double min, boolean hasMax, double max, List<Long> bucketCounts, List<Double> explicitBounds, ExemplarMarshaler[] exemplars, KeyValueMarshaler[] attributes)
-
-
Method Details
-
createRepeated
-
create
-
writeTo
- Specified by:
writeToin classMarshaler- Throws:
IOException
-
calculateSize
private static int calculateSize(long startTimeUnixNano, long timeUnixNano, long count, double sum, boolean hasMin, double min, boolean hasMax, double max, List<Long> bucketCounts, List<Double> explicitBounds, ExemplarMarshaler[] exemplars, KeyValueMarshaler[] attributes)
-