Record Class ExternalSummary
java.lang.Object
java.lang.Record
org.hyperledger.besu.plugin.services.metrics.ExternalSummary
- Record Components:
count- the number of observationssum- the sum of all the observationsquantiles- a list of quantiles with values
public record ExternalSummary(long count, double sum, List<ExternalSummary.Quantile> quantiles)
extends Record
Record of summary data the is kept outside the metric system. Useful when existing libraries
calculate the summary data on their own, and we want to export that summary via the configured
metric system. A notable example are RocksDB statistics.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresent a single quantile and its value -
Constructor Summary
ConstructorsConstructorDescriptionExternalSummary(long count, double sum, List<ExternalSummary.Quantile> quantiles) Creates an instance of aExternalSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thequantilesrecord component.doublesum()Returns the value of thesumrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
count
-
sum
-
quantiles
-