Class HistogramDataPoint.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HistogramDataPoint.Builder>
io.opentelemetry.proto.metrics.v1.HistogramDataPoint.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HistogramDataPointOrBuilder,Cloneable
- Enclosing class:
- HistogramDataPoint
public static final class HistogramDataPoint.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HistogramDataPoint.Builder>
implements HistogramDataPointOrBuilder
HistogramDataPoint is a single data point in a timeseries that describes the time-varying values of a Histogram. A Histogram contains summary statistics for a population of values, it may optionally contain the distribution of those values across a set of buckets. If the histogram contains the distribution of values, then both "explicit_bounds" and "bucket counts" fields must be defined. If the histogram does not contain the distribution of values, then both "explicit_bounds" and "bucket_counts" must be omitted and only "count" and "sum" are known.Protobuf type
opentelemetry.proto.metrics.v1.HistogramDataPoint-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributes(Iterable<? extends KeyValue> values) The set of key/value pairs that uniquely identify the timeseries from where this point belongs.addAllBucketCounts(Iterable<? extends Long> values) bucket_counts is an optional field contains the count values of histogram for each bucket.addAllExemplars(Iterable<? extends Exemplar> values) (Optional) List of exemplars collected from measurements that were used to form the data pointaddAllExplicitBounds(Iterable<? extends Double> values) explicit_bounds specifies buckets with explicitly defined bounds for values.addAttributes(int index, KeyValue value) The set of key/value pairs that uniquely identify the timeseries from where this point belongs.addAttributes(int index, KeyValue.Builder builderForValue) The set of key/value pairs that uniquely identify the timeseries from where this point belongs.addAttributes(KeyValue value) The set of key/value pairs that uniquely identify the timeseries from where this point belongs.addAttributes(KeyValue.Builder builderForValue) The set of key/value pairs that uniquely identify the timeseries from where this point belongs.The set of key/value pairs that uniquely identify the timeseries from where this point belongs.addAttributesBuilder(int index) The set of key/value pairs that uniquely identify the timeseries from where this point belongs.addBucketCounts(long value) bucket_counts is an optional field contains the count values of histogram for each bucket.addExemplars(int index, Exemplar value) (Optional) List of exemplars collected from measurements that were used to form the data pointaddExemplars(int index, Exemplar.Builder builderForValue) (Optional) List of exemplars collected from measurements that were used to form the data pointaddExemplars(Exemplar value) (Optional) List of exemplars collected from measurements that were used to form the data pointaddExemplars(Exemplar.Builder builderForValue) (Optional) List of exemplars collected from measurements that were used to form the data point(Optional) List of exemplars collected from measurements that were used to form the data pointaddExemplarsBuilder(int index) (Optional) List of exemplars collected from measurements that were used to form the data pointaddExplicitBounds(double value) explicit_bounds specifies buckets with explicitly defined bounds for values.build()clear()The set of key/value pairs that uniquely identify the timeseries from where this point belongs.bucket_counts is an optional field contains the count values of histogram for each bucket.count is the number of values in the population.(Optional) List of exemplars collected from measurements that were used to form the data pointexplicit_bounds specifies buckets with explicitly defined bounds for values.Flags that apply to this specific data point.clearMax()max is the maximum value over (start_time, end_time].clearMin()min is the minimum value over (start_time, end_time].StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric.clearSum()sum of the values in the population.TimeUnixNano is required, see the detailed comments above Metric.getAttributes(int index) The set of key/value pairs that uniquely identify the timeseries from where this point belongs.getAttributesBuilder(int index) The set of key/value pairs that uniquely identify the timeseries from where this point belongs.The set of key/value pairs that uniquely identify the timeseries from where this point belongs.intThe set of key/value pairs that uniquely identify the timeseries from where this point belongs.The set of key/value pairs that uniquely identify the timeseries from where this point belongs.getAttributesOrBuilder(int index) The set of key/value pairs that uniquely identify the timeseries from where this point belongs.List<? extends KeyValueOrBuilder>The set of key/value pairs that uniquely identify the timeseries from where this point belongs.longgetBucketCounts(int index) bucket_counts is an optional field contains the count values of histogram for each bucket.intbucket_counts is an optional field contains the count values of histogram for each bucket.bucket_counts is an optional field contains the count values of histogram for each bucket.longgetCount()count is the number of values in the population.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExemplars(int index) (Optional) List of exemplars collected from measurements that were used to form the data pointgetExemplarsBuilder(int index) (Optional) List of exemplars collected from measurements that were used to form the data point(Optional) List of exemplars collected from measurements that were used to form the data pointint(Optional) List of exemplars collected from measurements that were used to form the data point(Optional) List of exemplars collected from measurements that were used to form the data pointgetExemplarsOrBuilder(int index) (Optional) List of exemplars collected from measurements that were used to form the data pointList<? extends ExemplarOrBuilder>(Optional) List of exemplars collected from measurements that were used to form the data pointdoublegetExplicitBounds(int index) explicit_bounds specifies buckets with explicitly defined bounds for values.intexplicit_bounds specifies buckets with explicitly defined bounds for values.explicit_bounds specifies buckets with explicitly defined bounds for values.intgetFlags()Flags that apply to this specific data point.doublegetMax()max is the maximum value over (start_time, end_time].doublegetMin()min is the minimum value over (start_time, end_time].longStartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric.doublegetSum()sum of the values in the population.longTimeUnixNano is required, see the detailed comments above Metric.booleanhasMax()max is the maximum value over (start_time, end_time].booleanhasMin()min is the minimum value over (start_time, end_time].booleanhasSum()sum of the values in the population.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(HistogramDataPoint other) removeAttributes(int index) The set of key/value pairs that uniquely identify the timeseries from where this point belongs.removeExemplars(int index) (Optional) List of exemplars collected from measurements that were used to form the data pointsetAttributes(int index, KeyValue value) The set of key/value pairs that uniquely identify the timeseries from where this point belongs.setAttributes(int index, KeyValue.Builder builderForValue) The set of key/value pairs that uniquely identify the timeseries from where this point belongs.setBucketCounts(int index, long value) bucket_counts is an optional field contains the count values of histogram for each bucket.setCount(long value) count is the number of values in the population.setExemplars(int index, Exemplar value) (Optional) List of exemplars collected from measurements that were used to form the data pointsetExemplars(int index, Exemplar.Builder builderForValue) (Optional) List of exemplars collected from measurements that were used to form the data pointsetExplicitBounds(int index, double value) explicit_bounds specifies buckets with explicitly defined bounds for values.setFlags(int value) Flags that apply to this specific data point.setMax(double value) max is the maximum value over (start_time, end_time].setMin(double value) min is the minimum value over (start_time, end_time].setStartTimeUnixNano(long value) StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric.setSum(double value) sum of the values in the population.setTimeUnixNano(long value) TimeUnixNano is required, see the detailed comments above Metric.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HistogramDataPoint.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HistogramDataPoint.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<HistogramDataPoint.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HistogramDataPoint.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HistogramDataPoint.Builder>
-
mergeFrom
public HistogramDataPoint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HistogramDataPoint.Builder>- Throws:
IOException
-
getAttributesList
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9;- Specified by:
getAttributesListin interfaceHistogramDataPointOrBuilder
-
getAttributesCount
public int getAttributesCount()The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9;- Specified by:
getAttributesCountin interfaceHistogramDataPointOrBuilder
-
getAttributes
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9;- Specified by:
getAttributesin interfaceHistogramDataPointOrBuilder
-
setAttributes
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9; -
setAttributes
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9; -
addAttributes
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9; -
addAttributes
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9; -
addAttributes
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9; -
addAttributes
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9; -
addAllAttributes
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9; -
clearAttributes
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9; -
removeAttributes
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9; -
getAttributesBuilder
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9; -
getAttributesOrBuilder
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9;- Specified by:
getAttributesOrBuilderin interfaceHistogramDataPointOrBuilder
-
getAttributesOrBuilderList
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9;- Specified by:
getAttributesOrBuilderListin interfaceHistogramDataPointOrBuilder
-
addAttributesBuilder
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9; -
addAttributesBuilder
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9; -
getAttributesBuilderList
The set of key/value pairs that uniquely identify the timeseries from where this point belongs. The list may be empty (may contain 0 elements). Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The attribute values SHOULD NOT contain empty values. The attribute values SHOULD NOT contain bytes values. The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values, double values. The attribute values SHOULD NOT contain kvlist values. The behavior of software that receives attributes containing such values can be unpredictable. These restrictions can change in a minor release. The restrictions take origin from the OpenTelemetry specification: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 9; -
getStartTimeUnixNano
public long getStartTimeUnixNano()StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 start_time_unix_nano = 2;- Specified by:
getStartTimeUnixNanoin interfaceHistogramDataPointOrBuilder- Returns:
- The startTimeUnixNano.
-
setStartTimeUnixNano
StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 start_time_unix_nano = 2;- Parameters:
value- The startTimeUnixNano to set.- Returns:
- This builder for chaining.
-
clearStartTimeUnixNano
StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 start_time_unix_nano = 2;- Returns:
- This builder for chaining.
-
getTimeUnixNano
public long getTimeUnixNano()TimeUnixNano is required, see the detailed comments above Metric. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 time_unix_nano = 3;- Specified by:
getTimeUnixNanoin interfaceHistogramDataPointOrBuilder- Returns:
- The timeUnixNano.
-
setTimeUnixNano
TimeUnixNano is required, see the detailed comments above Metric. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 time_unix_nano = 3;- Parameters:
value- The timeUnixNano to set.- Returns:
- This builder for chaining.
-
clearTimeUnixNano
TimeUnixNano is required, see the detailed comments above Metric. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
fixed64 time_unix_nano = 3;- Returns:
- This builder for chaining.
-
getCount
public long getCount()count is the number of values in the population. Must be non-negative. This value must be equal to the sum of the "count" fields in buckets if a histogram is provided.
fixed64 count = 4;- Specified by:
getCountin interfaceHistogramDataPointOrBuilder- Returns:
- The count.
-
setCount
count is the number of values in the population. Must be non-negative. This value must be equal to the sum of the "count" fields in buckets if a histogram is provided.
fixed64 count = 4;- Parameters:
value- The count to set.- Returns:
- This builder for chaining.
-
clearCount
count is the number of values in the population. Must be non-negative. This value must be equal to the sum of the "count" fields in buckets if a histogram is provided.
fixed64 count = 4;- Returns:
- This builder for chaining.
-
hasSum
public boolean hasSum()sum of the values in the population. If count is zero then this field must be zero. Note: Sum should only be filled out when measuring non-negative discrete events, and is assumed to be monotonic over the values of these events. Negative events *can* be recorded, but sum should not be filled out when doing so. This is specifically to enforce compatibility w/ OpenMetrics, see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram
optional double sum = 5;- Specified by:
hasSumin interfaceHistogramDataPointOrBuilder- Returns:
- Whether the sum field is set.
-
getSum
public double getSum()sum of the values in the population. If count is zero then this field must be zero. Note: Sum should only be filled out when measuring non-negative discrete events, and is assumed to be monotonic over the values of these events. Negative events *can* be recorded, but sum should not be filled out when doing so. This is specifically to enforce compatibility w/ OpenMetrics, see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram
optional double sum = 5;- Specified by:
getSumin interfaceHistogramDataPointOrBuilder- Returns:
- The sum.
-
setSum
sum of the values in the population. If count is zero then this field must be zero. Note: Sum should only be filled out when measuring non-negative discrete events, and is assumed to be monotonic over the values of these events. Negative events *can* be recorded, but sum should not be filled out when doing so. This is specifically to enforce compatibility w/ OpenMetrics, see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram
optional double sum = 5;- Parameters:
value- The sum to set.- Returns:
- This builder for chaining.
-
clearSum
sum of the values in the population. If count is zero then this field must be zero. Note: Sum should only be filled out when measuring non-negative discrete events, and is assumed to be monotonic over the values of these events. Negative events *can* be recorded, but sum should not be filled out when doing so. This is specifically to enforce compatibility w/ OpenMetrics, see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram
optional double sum = 5;- Returns:
- This builder for chaining.
-
getBucketCountsList
bucket_counts is an optional field contains the count values of histogram for each bucket. The sum of the bucket_counts must equal the value in the count field. The number of elements in bucket_counts array must be by one greater than the number of elements in explicit_bounds array. The exception to this rule is when the length of bucket_counts is 0, then the length of explicit_bounds must also be 0.
repeated fixed64 bucket_counts = 6;- Specified by:
getBucketCountsListin interfaceHistogramDataPointOrBuilder- Returns:
- A list containing the bucketCounts.
-
getBucketCountsCount
public int getBucketCountsCount()bucket_counts is an optional field contains the count values of histogram for each bucket. The sum of the bucket_counts must equal the value in the count field. The number of elements in bucket_counts array must be by one greater than the number of elements in explicit_bounds array. The exception to this rule is when the length of bucket_counts is 0, then the length of explicit_bounds must also be 0.
repeated fixed64 bucket_counts = 6;- Specified by:
getBucketCountsCountin interfaceHistogramDataPointOrBuilder- Returns:
- The count of bucketCounts.
-
getBucketCounts
public long getBucketCounts(int index) bucket_counts is an optional field contains the count values of histogram for each bucket. The sum of the bucket_counts must equal the value in the count field. The number of elements in bucket_counts array must be by one greater than the number of elements in explicit_bounds array. The exception to this rule is when the length of bucket_counts is 0, then the length of explicit_bounds must also be 0.
repeated fixed64 bucket_counts = 6;- Specified by:
getBucketCountsin interfaceHistogramDataPointOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The bucketCounts at the given index.
-
setBucketCounts
bucket_counts is an optional field contains the count values of histogram for each bucket. The sum of the bucket_counts must equal the value in the count field. The number of elements in bucket_counts array must be by one greater than the number of elements in explicit_bounds array. The exception to this rule is when the length of bucket_counts is 0, then the length of explicit_bounds must also be 0.
repeated fixed64 bucket_counts = 6;- Parameters:
index- The index to set the value at.value- The bucketCounts to set.- Returns:
- This builder for chaining.
-
addBucketCounts
bucket_counts is an optional field contains the count values of histogram for each bucket. The sum of the bucket_counts must equal the value in the count field. The number of elements in bucket_counts array must be by one greater than the number of elements in explicit_bounds array. The exception to this rule is when the length of bucket_counts is 0, then the length of explicit_bounds must also be 0.
repeated fixed64 bucket_counts = 6;- Parameters:
value- The bucketCounts to add.- Returns:
- This builder for chaining.
-
addAllBucketCounts
bucket_counts is an optional field contains the count values of histogram for each bucket. The sum of the bucket_counts must equal the value in the count field. The number of elements in bucket_counts array must be by one greater than the number of elements in explicit_bounds array. The exception to this rule is when the length of bucket_counts is 0, then the length of explicit_bounds must also be 0.
repeated fixed64 bucket_counts = 6;- Parameters:
values- The bucketCounts to add.- Returns:
- This builder for chaining.
-
clearBucketCounts
bucket_counts is an optional field contains the count values of histogram for each bucket. The sum of the bucket_counts must equal the value in the count field. The number of elements in bucket_counts array must be by one greater than the number of elements in explicit_bounds array. The exception to this rule is when the length of bucket_counts is 0, then the length of explicit_bounds must also be 0.
repeated fixed64 bucket_counts = 6;- Returns:
- This builder for chaining.
-
getExplicitBoundsList
explicit_bounds specifies buckets with explicitly defined bounds for values. The boundaries for bucket at index i are: (-infinity, explicit_bounds[i]] for i == 0 (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds) (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds) The values in the explicit_bounds array must be strictly increasing. Histogram buckets are inclusive of their upper boundary, except the last bucket where the boundary is at infinity. This format is intentionally compatible with the OpenMetrics histogram definition. If bucket_counts length is 0 then explicit_bounds length must also be 0, otherwise the data point is invalid.
repeated double explicit_bounds = 7;- Specified by:
getExplicitBoundsListin interfaceHistogramDataPointOrBuilder- Returns:
- A list containing the explicitBounds.
-
getExplicitBoundsCount
public int getExplicitBoundsCount()explicit_bounds specifies buckets with explicitly defined bounds for values. The boundaries for bucket at index i are: (-infinity, explicit_bounds[i]] for i == 0 (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds) (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds) The values in the explicit_bounds array must be strictly increasing. Histogram buckets are inclusive of their upper boundary, except the last bucket where the boundary is at infinity. This format is intentionally compatible with the OpenMetrics histogram definition. If bucket_counts length is 0 then explicit_bounds length must also be 0, otherwise the data point is invalid.
repeated double explicit_bounds = 7;- Specified by:
getExplicitBoundsCountin interfaceHistogramDataPointOrBuilder- Returns:
- The count of explicitBounds.
-
getExplicitBounds
public double getExplicitBounds(int index) explicit_bounds specifies buckets with explicitly defined bounds for values. The boundaries for bucket at index i are: (-infinity, explicit_bounds[i]] for i == 0 (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds) (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds) The values in the explicit_bounds array must be strictly increasing. Histogram buckets are inclusive of their upper boundary, except the last bucket where the boundary is at infinity. This format is intentionally compatible with the OpenMetrics histogram definition. If bucket_counts length is 0 then explicit_bounds length must also be 0, otherwise the data point is invalid.
repeated double explicit_bounds = 7;- Specified by:
getExplicitBoundsin interfaceHistogramDataPointOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The explicitBounds at the given index.
-
setExplicitBounds
explicit_bounds specifies buckets with explicitly defined bounds for values. The boundaries for bucket at index i are: (-infinity, explicit_bounds[i]] for i == 0 (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds) (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds) The values in the explicit_bounds array must be strictly increasing. Histogram buckets are inclusive of their upper boundary, except the last bucket where the boundary is at infinity. This format is intentionally compatible with the OpenMetrics histogram definition. If bucket_counts length is 0 then explicit_bounds length must also be 0, otherwise the data point is invalid.
repeated double explicit_bounds = 7;- Parameters:
index- The index to set the value at.value- The explicitBounds to set.- Returns:
- This builder for chaining.
-
addExplicitBounds
explicit_bounds specifies buckets with explicitly defined bounds for values. The boundaries for bucket at index i are: (-infinity, explicit_bounds[i]] for i == 0 (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds) (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds) The values in the explicit_bounds array must be strictly increasing. Histogram buckets are inclusive of their upper boundary, except the last bucket where the boundary is at infinity. This format is intentionally compatible with the OpenMetrics histogram definition. If bucket_counts length is 0 then explicit_bounds length must also be 0, otherwise the data point is invalid.
repeated double explicit_bounds = 7;- Parameters:
value- The explicitBounds to add.- Returns:
- This builder for chaining.
-
addAllExplicitBounds
explicit_bounds specifies buckets with explicitly defined bounds for values. The boundaries for bucket at index i are: (-infinity, explicit_bounds[i]] for i == 0 (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds) (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds) The values in the explicit_bounds array must be strictly increasing. Histogram buckets are inclusive of their upper boundary, except the last bucket where the boundary is at infinity. This format is intentionally compatible with the OpenMetrics histogram definition. If bucket_counts length is 0 then explicit_bounds length must also be 0, otherwise the data point is invalid.
repeated double explicit_bounds = 7;- Parameters:
values- The explicitBounds to add.- Returns:
- This builder for chaining.
-
clearExplicitBounds
explicit_bounds specifies buckets with explicitly defined bounds for values. The boundaries for bucket at index i are: (-infinity, explicit_bounds[i]] for i == 0 (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds) (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds) The values in the explicit_bounds array must be strictly increasing. Histogram buckets are inclusive of their upper boundary, except the last bucket where the boundary is at infinity. This format is intentionally compatible with the OpenMetrics histogram definition. If bucket_counts length is 0 then explicit_bounds length must also be 0, otherwise the data point is invalid.
repeated double explicit_bounds = 7;- Returns:
- This builder for chaining.
-
getExemplarsList
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8;- Specified by:
getExemplarsListin interfaceHistogramDataPointOrBuilder
-
getExemplarsCount
public int getExemplarsCount()(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8;- Specified by:
getExemplarsCountin interfaceHistogramDataPointOrBuilder
-
getExemplars
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8;- Specified by:
getExemplarsin interfaceHistogramDataPointOrBuilder
-
setExemplars
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; -
setExemplars
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; -
addExemplars
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; -
addExemplars
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; -
addExemplars
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; -
addExemplars
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; -
addAllExemplars
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; -
clearExemplars
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; -
removeExemplars
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; -
getExemplarsBuilder
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; -
getExemplarsOrBuilder
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8;- Specified by:
getExemplarsOrBuilderin interfaceHistogramDataPointOrBuilder
-
getExemplarsOrBuilderList
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8;- Specified by:
getExemplarsOrBuilderListin interfaceHistogramDataPointOrBuilder
-
addExemplarsBuilder
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; -
addExemplarsBuilder
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; -
getExemplarsBuilderList
(Optional) List of exemplars collected from measurements that were used to form the data point
repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 8; -
getFlags
public int getFlags()Flags that apply to this specific data point. See DataPointFlags for the available flags and their meaning.
uint32 flags = 10;- Specified by:
getFlagsin interfaceHistogramDataPointOrBuilder- Returns:
- The flags.
-
setFlags
Flags that apply to this specific data point. See DataPointFlags for the available flags and their meaning.
uint32 flags = 10;- Parameters:
value- The flags to set.- Returns:
- This builder for chaining.
-
clearFlags
Flags that apply to this specific data point. See DataPointFlags for the available flags and their meaning.
uint32 flags = 10;- Returns:
- This builder for chaining.
-
hasMin
public boolean hasMin()min is the minimum value over (start_time, end_time].
optional double min = 11;- Specified by:
hasMinin interfaceHistogramDataPointOrBuilder- Returns:
- Whether the min field is set.
-
getMin
public double getMin()min is the minimum value over (start_time, end_time].
optional double min = 11;- Specified by:
getMinin interfaceHistogramDataPointOrBuilder- Returns:
- The min.
-
setMin
min is the minimum value over (start_time, end_time].
optional double min = 11;- Parameters:
value- The min to set.- Returns:
- This builder for chaining.
-
clearMin
min is the minimum value over (start_time, end_time].
optional double min = 11;- Returns:
- This builder for chaining.
-
hasMax
public boolean hasMax()max is the maximum value over (start_time, end_time].
optional double max = 12;- Specified by:
hasMaxin interfaceHistogramDataPointOrBuilder- Returns:
- Whether the max field is set.
-
getMax
public double getMax()max is the maximum value over (start_time, end_time].
optional double max = 12;- Specified by:
getMaxin interfaceHistogramDataPointOrBuilder- Returns:
- The max.
-
setMax
max is the maximum value over (start_time, end_time].
optional double max = 12;- Parameters:
value- The max to set.- Returns:
- This builder for chaining.
-
clearMax
max is the maximum value over (start_time, end_time].
optional double max = 12;- Returns:
- This builder for chaining.
-