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 long
private final ExemplarMarshaler[]
private final boolean
private final boolean
private final double
private final double
private final long
private final double
private final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
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 Summary
Modifier and TypeMethodDescriptionprivate 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) (package private) static HistogramDataPointMarshaler
create
(HistogramPointData point) (package private) static HistogramDataPointMarshaler[]
createRepeated
(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 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:
writeTo
in 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)
-