Package prometheus
Class Types.Histogram.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Types.Histogram.Builder>
prometheus.Types.Histogram.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Types.HistogramOrBuilder
- Enclosing class:
- Types.Histogram
public static final class Types.Histogram.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Types.Histogram.Builder>
implements Types.HistogramOrBuilder
A native histogram, also known as a sparse histogram. Original design doc: https://docs.google.com/document/d/1cLNv3aufPZb3fNfaJgdaRBZsInZKKIHo9E6HinJVbpM/edit The appendix of this design doc also explains the concept of float histograms. This Histogram message can represent both, the usual integer histogram as well as a float histogram.Protobuf type
prometheus.Histogram-
Method Summary
Modifier and TypeMethodDescriptionaddAllCustomValues(Iterable<? extends Double> values) custom_values are not part of the specification, DO NOT use in remote write clients.addAllNegativeCounts(Iterable<? extends Double> values) Absolute count of each bucket.addAllNegativeDeltas(Iterable<? extends Long> values) Use either "negative_deltas" or "negative_counts", the former for regular histograms with integer counts, the latter for float histograms.addAllNegativeSpans(Iterable<? extends Types.BucketSpan> values) Negative Buckets.addAllPositiveCounts(Iterable<? extends Double> values) Absolute count of each bucket.addAllPositiveDeltas(Iterable<? extends Long> values) Use either "positive_deltas" or "positive_counts", the former for regular histograms with integer counts, the latter for float histograms.addAllPositiveSpans(Iterable<? extends Types.BucketSpan> values) Positive Buckets.addCustomValues(double value) custom_values are not part of the specification, DO NOT use in remote write clients.addNegativeCounts(double value) Absolute count of each bucket.addNegativeDeltas(long value) Use either "negative_deltas" or "negative_counts", the former for regular histograms with integer counts, the latter for float histograms.addNegativeSpans(int index, Types.BucketSpan value) Negative Buckets.addNegativeSpans(int index, Types.BucketSpan.Builder builderForValue) Negative Buckets.addNegativeSpans(Types.BucketSpan value) Negative Buckets.addNegativeSpans(Types.BucketSpan.Builder builderForValue) Negative Buckets.Negative Buckets.addNegativeSpansBuilder(int index) Negative Buckets.addPositiveCounts(double value) Absolute count of each bucket.addPositiveDeltas(long value) Use either "positive_deltas" or "positive_counts", the former for regular histograms with integer counts, the latter for float histograms.addPositiveSpans(int index, Types.BucketSpan value) Positive Buckets.addPositiveSpans(int index, Types.BucketSpan.Builder builderForValue) Positive Buckets.addPositiveSpans(Types.BucketSpan value) Positive Buckets.addPositiveSpans(Types.BucketSpan.Builder builderForValue) Positive Buckets.Positive Buckets.addPositiveSpansBuilder(int index) Positive Buckets.build()clear()double count_float = 2;uint64 count_int = 1;custom_values are not part of the specification, DO NOT use in remote write clients.Absolute count of each bucket.Use either "negative_deltas" or "negative_counts", the former for regular histograms with integer counts, the latter for float histograms.Negative Buckets.Absolute count of each bucket.Use either "positive_deltas" or "positive_counts", the former for regular histograms with integer counts, the latter for float histograms.Positive Buckets..prometheus.Histogram.ResetHint reset_hint = 14;The schema defines the bucket schema.clearSum()Sum of observations in the histogram.timestamp is in ms format, see model/timestamp/timestamp.go for conversion from time.Time to Prometheus timestamp.double zero_count_float = 7;uint64 zero_count_int = 6;Breadth of the zero bucket.doubledouble count_float = 2;longuint64 count_int = 1;doublegetCustomValues(int index) custom_values are not part of the specification, DO NOT use in remote write clients.intcustom_values are not part of the specification, DO NOT use in remote write clients.custom_values are not part of the specification, DO NOT use in remote write clients.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoublegetNegativeCounts(int index) Absolute count of each bucket.intAbsolute count of each bucket.Absolute count of each bucket.longgetNegativeDeltas(int index) Use either "negative_deltas" or "negative_counts", the former for regular histograms with integer counts, the latter for float histograms.intUse either "negative_deltas" or "negative_counts", the former for regular histograms with integer counts, the latter for float histograms.Use either "negative_deltas" or "negative_counts", the former for regular histograms with integer counts, the latter for float histograms.getNegativeSpans(int index) Negative Buckets.getNegativeSpansBuilder(int index) Negative Buckets.Negative Buckets.intNegative Buckets.Negative Buckets.getNegativeSpansOrBuilder(int index) Negative Buckets.List<? extends Types.BucketSpanOrBuilder>Negative Buckets.doublegetPositiveCounts(int index) Absolute count of each bucket.intAbsolute count of each bucket.Absolute count of each bucket.longgetPositiveDeltas(int index) Use either "positive_deltas" or "positive_counts", the former for regular histograms with integer counts, the latter for float histograms.intUse either "positive_deltas" or "positive_counts", the former for regular histograms with integer counts, the latter for float histograms.Use either "positive_deltas" or "positive_counts", the former for regular histograms with integer counts, the latter for float histograms.getPositiveSpans(int index) Positive Buckets.getPositiveSpansBuilder(int index) Positive Buckets.Positive Buckets.intPositive Buckets.Positive Buckets.getPositiveSpansOrBuilder(int index) Positive Buckets.List<? extends Types.BucketSpanOrBuilder>Positive Buckets..prometheus.Histogram.ResetHint reset_hint = 14;int.prometheus.Histogram.ResetHint reset_hint = 14;intThe schema defines the bucket schema.doublegetSum()Sum of observations in the histogram.longtimestamp is in ms format, see model/timestamp/timestamp.go for conversion from time.Time to Prometheus timestamp.doubledouble zero_count_float = 7;longuint64 zero_count_int = 6;doubleBreadth of the zero bucket.booleandouble count_float = 2;booleanuint64 count_int = 1;booleandouble zero_count_float = 7;booleanuint64 zero_count_int = 6;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Types.Histogram other) removeNegativeSpans(int index) Negative Buckets.removePositiveSpans(int index) Positive Buckets.setCountFloat(double value) double count_float = 2;setCountInt(long value) uint64 count_int = 1;setCustomValues(int index, double value) custom_values are not part of the specification, DO NOT use in remote write clients.setNegativeCounts(int index, double value) Absolute count of each bucket.setNegativeDeltas(int index, long value) Use either "negative_deltas" or "negative_counts", the former for regular histograms with integer counts, the latter for float histograms.setNegativeSpans(int index, Types.BucketSpan value) Negative Buckets.setNegativeSpans(int index, Types.BucketSpan.Builder builderForValue) Negative Buckets.setPositiveCounts(int index, double value) Absolute count of each bucket.setPositiveDeltas(int index, long value) Use either "positive_deltas" or "positive_counts", the former for regular histograms with integer counts, the latter for float histograms.setPositiveSpans(int index, Types.BucketSpan value) Positive Buckets.setPositiveSpans(int index, Types.BucketSpan.Builder builderForValue) Positive Buckets..prometheus.Histogram.ResetHint reset_hint = 14;setResetHintValue(int value) .prometheus.Histogram.ResetHint reset_hint = 14;setSchema(int value) The schema defines the bucket schema.setSum(double value) Sum of observations in the histogram.setTimestamp(long value) timestamp is in ms format, see model/timestamp/timestamp.go for conversion from time.Time to Prometheus timestamp.setZeroCountFloat(double value) double zero_count_float = 7;setZeroCountInt(long value) uint64 zero_count_int = 6;setZeroThreshold(double value) Breadth of the zero bucket.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<Types.Histogram.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<Types.Histogram.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<Types.Histogram.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<Types.Histogram.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Types.Histogram.Builder>
-
mergeFrom
public Types.Histogram.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<Types.Histogram.Builder>- Throws:
IOException
-
getCountCase
- Specified by:
getCountCasein interfaceTypes.HistogramOrBuilder
-
clearCount
-
getZeroCountCase
- Specified by:
getZeroCountCasein interfaceTypes.HistogramOrBuilder
-
clearZeroCount
-
hasCountInt
public boolean hasCountInt()uint64 count_int = 1;- Specified by:
hasCountIntin interfaceTypes.HistogramOrBuilder- Returns:
- Whether the countInt field is set.
-
getCountInt
public long getCountInt()uint64 count_int = 1;- Specified by:
getCountIntin interfaceTypes.HistogramOrBuilder- Returns:
- The countInt.
-
setCountInt
uint64 count_int = 1;- Parameters:
value- The countInt to set.- Returns:
- This builder for chaining.
-
clearCountInt
uint64 count_int = 1;- Returns:
- This builder for chaining.
-
hasCountFloat
public boolean hasCountFloat()double count_float = 2;- Specified by:
hasCountFloatin interfaceTypes.HistogramOrBuilder- Returns:
- Whether the countFloat field is set.
-
getCountFloat
public double getCountFloat()double count_float = 2;- Specified by:
getCountFloatin interfaceTypes.HistogramOrBuilder- Returns:
- The countFloat.
-
setCountFloat
double count_float = 2;- Parameters:
value- The countFloat to set.- Returns:
- This builder for chaining.
-
clearCountFloat
double count_float = 2;- Returns:
- This builder for chaining.
-
getSum
public double getSum()Sum of observations in the histogram.
double sum = 3;- Specified by:
getSumin interfaceTypes.HistogramOrBuilder- Returns:
- The sum.
-
setSum
Sum of observations in the histogram.
double sum = 3;- Parameters:
value- The sum to set.- Returns:
- This builder for chaining.
-
clearSum
Sum of observations in the histogram.
double sum = 3;- Returns:
- This builder for chaining.
-
getSchema
public int getSchema()The schema defines the bucket schema. Currently, valid numbers are -4 <= n <= 8. They are all for base-2 bucket schemas, where 1 is a bucket boundary in each case, and then each power of two is divided into 2^n logarithmic buckets. Or in other words, each bucket boundary is the previous boundary times 2^(2^-n). In the future, more bucket schemas may be added using numbers < -4 or > 8.
sint32 schema = 4;- Specified by:
getSchemain interfaceTypes.HistogramOrBuilder- Returns:
- The schema.
-
setSchema
The schema defines the bucket schema. Currently, valid numbers are -4 <= n <= 8. They are all for base-2 bucket schemas, where 1 is a bucket boundary in each case, and then each power of two is divided into 2^n logarithmic buckets. Or in other words, each bucket boundary is the previous boundary times 2^(2^-n). In the future, more bucket schemas may be added using numbers < -4 or > 8.
sint32 schema = 4;- Parameters:
value- The schema to set.- Returns:
- This builder for chaining.
-
clearSchema
The schema defines the bucket schema. Currently, valid numbers are -4 <= n <= 8. They are all for base-2 bucket schemas, where 1 is a bucket boundary in each case, and then each power of two is divided into 2^n logarithmic buckets. Or in other words, each bucket boundary is the previous boundary times 2^(2^-n). In the future, more bucket schemas may be added using numbers < -4 or > 8.
sint32 schema = 4;- Returns:
- This builder for chaining.
-
getZeroThreshold
public double getZeroThreshold()Breadth of the zero bucket.
double zero_threshold = 5;- Specified by:
getZeroThresholdin interfaceTypes.HistogramOrBuilder- Returns:
- The zeroThreshold.
-
setZeroThreshold
Breadth of the zero bucket.
double zero_threshold = 5;- Parameters:
value- The zeroThreshold to set.- Returns:
- This builder for chaining.
-
clearZeroThreshold
Breadth of the zero bucket.
double zero_threshold = 5;- Returns:
- This builder for chaining.
-
hasZeroCountInt
public boolean hasZeroCountInt()uint64 zero_count_int = 6;- Specified by:
hasZeroCountIntin interfaceTypes.HistogramOrBuilder- Returns:
- Whether the zeroCountInt field is set.
-
getZeroCountInt
public long getZeroCountInt()uint64 zero_count_int = 6;- Specified by:
getZeroCountIntin interfaceTypes.HistogramOrBuilder- Returns:
- The zeroCountInt.
-
setZeroCountInt
uint64 zero_count_int = 6;- Parameters:
value- The zeroCountInt to set.- Returns:
- This builder for chaining.
-
clearZeroCountInt
uint64 zero_count_int = 6;- Returns:
- This builder for chaining.
-
hasZeroCountFloat
public boolean hasZeroCountFloat()double zero_count_float = 7;- Specified by:
hasZeroCountFloatin interfaceTypes.HistogramOrBuilder- Returns:
- Whether the zeroCountFloat field is set.
-
getZeroCountFloat
public double getZeroCountFloat()double zero_count_float = 7;- Specified by:
getZeroCountFloatin interfaceTypes.HistogramOrBuilder- Returns:
- The zeroCountFloat.
-
setZeroCountFloat
double zero_count_float = 7;- Parameters:
value- The zeroCountFloat to set.- Returns:
- This builder for chaining.
-
clearZeroCountFloat
double zero_count_float = 7;- Returns:
- This builder for chaining.
-
getNegativeSpansList
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];- Specified by:
getNegativeSpansListin interfaceTypes.HistogramOrBuilder
-
getNegativeSpansCount
public int getNegativeSpansCount()Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];- Specified by:
getNegativeSpansCountin interfaceTypes.HistogramOrBuilder
-
getNegativeSpans
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];- Specified by:
getNegativeSpansin interfaceTypes.HistogramOrBuilder
-
setNegativeSpans
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false]; -
setNegativeSpans
public Types.Histogram.Builder setNegativeSpans(int index, Types.BucketSpan.Builder builderForValue) Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false]; -
addNegativeSpans
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false]; -
addNegativeSpans
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false]; -
addNegativeSpans
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false]; -
addNegativeSpans
public Types.Histogram.Builder addNegativeSpans(int index, Types.BucketSpan.Builder builderForValue) Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false]; -
addAllNegativeSpans
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false]; -
clearNegativeSpans
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false]; -
removeNegativeSpans
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false]; -
getNegativeSpansBuilder
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false]; -
getNegativeSpansOrBuilder
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];- Specified by:
getNegativeSpansOrBuilderin interfaceTypes.HistogramOrBuilder
-
getNegativeSpansOrBuilderList
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false];- Specified by:
getNegativeSpansOrBuilderListin interfaceTypes.HistogramOrBuilder
-
addNegativeSpansBuilder
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false]; -
addNegativeSpansBuilder
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false]; -
getNegativeSpansBuilderList
Negative Buckets.
repeated .prometheus.BucketSpan negative_spans = 8 [(.gogoproto.nullable) = false]; -
getNegativeDeltasList
Use either "negative_deltas" or "negative_counts", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 negative_deltas = 9;- Specified by:
getNegativeDeltasListin interfaceTypes.HistogramOrBuilder- Returns:
- A list containing the negativeDeltas.
-
getNegativeDeltasCount
public int getNegativeDeltasCount()Use either "negative_deltas" or "negative_counts", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 negative_deltas = 9;- Specified by:
getNegativeDeltasCountin interfaceTypes.HistogramOrBuilder- Returns:
- The count of negativeDeltas.
-
getNegativeDeltas
public long getNegativeDeltas(int index) Use either "negative_deltas" or "negative_counts", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 negative_deltas = 9;- Specified by:
getNegativeDeltasin interfaceTypes.HistogramOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The negativeDeltas at the given index.
-
setNegativeDeltas
Use either "negative_deltas" or "negative_counts", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 negative_deltas = 9;- Parameters:
index- The index to set the value at.value- The negativeDeltas to set.- Returns:
- This builder for chaining.
-
addNegativeDeltas
Use either "negative_deltas" or "negative_counts", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 negative_deltas = 9;- Parameters:
value- The negativeDeltas to add.- Returns:
- This builder for chaining.
-
addAllNegativeDeltas
Use either "negative_deltas" or "negative_counts", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 negative_deltas = 9;- Parameters:
values- The negativeDeltas to add.- Returns:
- This builder for chaining.
-
clearNegativeDeltas
Use either "negative_deltas" or "negative_counts", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 negative_deltas = 9;- Returns:
- This builder for chaining.
-
getNegativeCountsList
Absolute count of each bucket.
repeated double negative_counts = 10;- Specified by:
getNegativeCountsListin interfaceTypes.HistogramOrBuilder- Returns:
- A list containing the negativeCounts.
-
getNegativeCountsCount
public int getNegativeCountsCount()Absolute count of each bucket.
repeated double negative_counts = 10;- Specified by:
getNegativeCountsCountin interfaceTypes.HistogramOrBuilder- Returns:
- The count of negativeCounts.
-
getNegativeCounts
public double getNegativeCounts(int index) Absolute count of each bucket.
repeated double negative_counts = 10;- Specified by:
getNegativeCountsin interfaceTypes.HistogramOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The negativeCounts at the given index.
-
setNegativeCounts
Absolute count of each bucket.
repeated double negative_counts = 10;- Parameters:
index- The index to set the value at.value- The negativeCounts to set.- Returns:
- This builder for chaining.
-
addNegativeCounts
Absolute count of each bucket.
repeated double negative_counts = 10;- Parameters:
value- The negativeCounts to add.- Returns:
- This builder for chaining.
-
addAllNegativeCounts
Absolute count of each bucket.
repeated double negative_counts = 10;- Parameters:
values- The negativeCounts to add.- Returns:
- This builder for chaining.
-
clearNegativeCounts
Absolute count of each bucket.
repeated double negative_counts = 10;- Returns:
- This builder for chaining.
-
getPositiveSpansList
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];- Specified by:
getPositiveSpansListin interfaceTypes.HistogramOrBuilder
-
getPositiveSpansCount
public int getPositiveSpansCount()Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];- Specified by:
getPositiveSpansCountin interfaceTypes.HistogramOrBuilder
-
getPositiveSpans
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];- Specified by:
getPositiveSpansin interfaceTypes.HistogramOrBuilder
-
setPositiveSpans
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false]; -
setPositiveSpans
public Types.Histogram.Builder setPositiveSpans(int index, Types.BucketSpan.Builder builderForValue) Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false]; -
addPositiveSpans
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false]; -
addPositiveSpans
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false]; -
addPositiveSpans
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false]; -
addPositiveSpans
public Types.Histogram.Builder addPositiveSpans(int index, Types.BucketSpan.Builder builderForValue) Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false]; -
addAllPositiveSpans
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false]; -
clearPositiveSpans
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false]; -
removePositiveSpans
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false]; -
getPositiveSpansBuilder
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false]; -
getPositiveSpansOrBuilder
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];- Specified by:
getPositiveSpansOrBuilderin interfaceTypes.HistogramOrBuilder
-
getPositiveSpansOrBuilderList
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false];- Specified by:
getPositiveSpansOrBuilderListin interfaceTypes.HistogramOrBuilder
-
addPositiveSpansBuilder
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false]; -
addPositiveSpansBuilder
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false]; -
getPositiveSpansBuilderList
Positive Buckets.
repeated .prometheus.BucketSpan positive_spans = 11 [(.gogoproto.nullable) = false]; -
getPositiveDeltasList
Use either "positive_deltas" or "positive_counts", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 positive_deltas = 12;- Specified by:
getPositiveDeltasListin interfaceTypes.HistogramOrBuilder- Returns:
- A list containing the positiveDeltas.
-
getPositiveDeltasCount
public int getPositiveDeltasCount()Use either "positive_deltas" or "positive_counts", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 positive_deltas = 12;- Specified by:
getPositiveDeltasCountin interfaceTypes.HistogramOrBuilder- Returns:
- The count of positiveDeltas.
-
getPositiveDeltas
public long getPositiveDeltas(int index) Use either "positive_deltas" or "positive_counts", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 positive_deltas = 12;- Specified by:
getPositiveDeltasin interfaceTypes.HistogramOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The positiveDeltas at the given index.
-
setPositiveDeltas
Use either "positive_deltas" or "positive_counts", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 positive_deltas = 12;- Parameters:
index- The index to set the value at.value- The positiveDeltas to set.- Returns:
- This builder for chaining.
-
addPositiveDeltas
Use either "positive_deltas" or "positive_counts", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 positive_deltas = 12;- Parameters:
value- The positiveDeltas to add.- Returns:
- This builder for chaining.
-
addAllPositiveDeltas
Use either "positive_deltas" or "positive_counts", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 positive_deltas = 12;- Parameters:
values- The positiveDeltas to add.- Returns:
- This builder for chaining.
-
clearPositiveDeltas
Use either "positive_deltas" or "positive_counts", the former for regular histograms with integer counts, the latter for float histograms.
repeated sint64 positive_deltas = 12;- Returns:
- This builder for chaining.
-
getPositiveCountsList
Absolute count of each bucket.
repeated double positive_counts = 13;- Specified by:
getPositiveCountsListin interfaceTypes.HistogramOrBuilder- Returns:
- A list containing the positiveCounts.
-
getPositiveCountsCount
public int getPositiveCountsCount()Absolute count of each bucket.
repeated double positive_counts = 13;- Specified by:
getPositiveCountsCountin interfaceTypes.HistogramOrBuilder- Returns:
- The count of positiveCounts.
-
getPositiveCounts
public double getPositiveCounts(int index) Absolute count of each bucket.
repeated double positive_counts = 13;- Specified by:
getPositiveCountsin interfaceTypes.HistogramOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The positiveCounts at the given index.
-
setPositiveCounts
Absolute count of each bucket.
repeated double positive_counts = 13;- Parameters:
index- The index to set the value at.value- The positiveCounts to set.- Returns:
- This builder for chaining.
-
addPositiveCounts
Absolute count of each bucket.
repeated double positive_counts = 13;- Parameters:
value- The positiveCounts to add.- Returns:
- This builder for chaining.
-
addAllPositiveCounts
Absolute count of each bucket.
repeated double positive_counts = 13;- Parameters:
values- The positiveCounts to add.- Returns:
- This builder for chaining.
-
clearPositiveCounts
Absolute count of each bucket.
repeated double positive_counts = 13;- Returns:
- This builder for chaining.
-
getResetHintValue
public int getResetHintValue().prometheus.Histogram.ResetHint reset_hint = 14;- Specified by:
getResetHintValuein interfaceTypes.HistogramOrBuilder- Returns:
- The enum numeric value on the wire for resetHint.
-
setResetHintValue
.prometheus.Histogram.ResetHint reset_hint = 14;- Parameters:
value- The enum numeric value on the wire for resetHint to set.- Returns:
- This builder for chaining.
-
getResetHint
.prometheus.Histogram.ResetHint reset_hint = 14;- Specified by:
getResetHintin interfaceTypes.HistogramOrBuilder- Returns:
- The resetHint.
-
setResetHint
.prometheus.Histogram.ResetHint reset_hint = 14;- Parameters:
value- The resetHint to set.- Returns:
- This builder for chaining.
-
clearResetHint
.prometheus.Histogram.ResetHint reset_hint = 14;- Returns:
- This builder for chaining.
-
getTimestamp
public long getTimestamp()timestamp is in ms format, see model/timestamp/timestamp.go for conversion from time.Time to Prometheus timestamp.
int64 timestamp = 15;- Specified by:
getTimestampin interfaceTypes.HistogramOrBuilder- Returns:
- The timestamp.
-
setTimestamp
timestamp is in ms format, see model/timestamp/timestamp.go for conversion from time.Time to Prometheus timestamp.
int64 timestamp = 15;- Parameters:
value- The timestamp to set.- Returns:
- This builder for chaining.
-
clearTimestamp
timestamp is in ms format, see model/timestamp/timestamp.go for conversion from time.Time to Prometheus timestamp.
int64 timestamp = 15;- Returns:
- This builder for chaining.
-
getCustomValuesList
custom_values are not part of the specification, DO NOT use in remote write clients. Used only for converting from OpenTelemetry to Prometheus internally.
repeated double custom_values = 16;- Specified by:
getCustomValuesListin interfaceTypes.HistogramOrBuilder- Returns:
- A list containing the customValues.
-
getCustomValuesCount
public int getCustomValuesCount()custom_values are not part of the specification, DO NOT use in remote write clients. Used only for converting from OpenTelemetry to Prometheus internally.
repeated double custom_values = 16;- Specified by:
getCustomValuesCountin interfaceTypes.HistogramOrBuilder- Returns:
- The count of customValues.
-
getCustomValues
public double getCustomValues(int index) custom_values are not part of the specification, DO NOT use in remote write clients. Used only for converting from OpenTelemetry to Prometheus internally.
repeated double custom_values = 16;- Specified by:
getCustomValuesin interfaceTypes.HistogramOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The customValues at the given index.
-
setCustomValues
custom_values are not part of the specification, DO NOT use in remote write clients. Used only for converting from OpenTelemetry to Prometheus internally.
repeated double custom_values = 16;- Parameters:
index- The index to set the value at.value- The customValues to set.- Returns:
- This builder for chaining.
-
addCustomValues
custom_values are not part of the specification, DO NOT use in remote write clients. Used only for converting from OpenTelemetry to Prometheus internally.
repeated double custom_values = 16;- Parameters:
value- The customValues to add.- Returns:
- This builder for chaining.
-
addAllCustomValues
custom_values are not part of the specification, DO NOT use in remote write clients. Used only for converting from OpenTelemetry to Prometheus internally.
repeated double custom_values = 16;- Parameters:
values- The customValues to add.- Returns:
- This builder for chaining.
-
clearCustomValues
custom_values are not part of the specification, DO NOT use in remote write clients. Used only for converting from OpenTelemetry to Prometheus internally.
repeated double custom_values = 16;- Returns:
- This builder for chaining.
-